summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2014-10-29 17:44:08 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-29 13:31:31 -0700
commitd855802b8d45cf36622a640b71b58437cfee41d0 (patch)
treeac4b0d5daa1fb56225a685d4bd01f72f8cd1b7d0
parentf218f40d48bf0e5e1968c7ecaa44a2d1a7dc61c8 (diff)
downloadop-kernel-dev-d855802b8d45cf36622a640b71b58437cfee41d0.zip
op-kernel-dev-d855802b8d45cf36622a640b71b58437cfee41d0.tar.gz
staging: vt6655: don't update bUpdateBBVGA when off channel
Check flag conf IEEE80211_CONF_OFFCHANNEL so that RSSI doesn't swing wildly on scanning. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6655/device_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index c5eca10..968ea9a 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -2040,6 +2040,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance)
if (pDevice->vif &&
pDevice->op_mode != NL80211_IFTYPE_ADHOC) {
if (pDevice->bUpdateBBVGA &&
+ !(pDevice->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL) &&
pDevice->vif->bss_conf.assoc &&
pDevice->uCurrRSSI) {
long ldBm;
OpenPOWER on IntegriCloud