OSDN Git Service

staging: vt6655: don't update bUpdateBBVGA when off channel
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 29 Oct 2014 17:44:08 +0000 (17:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 20:31:31 +0000 (13:31 -0700)
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>
drivers/staging/vt6655/device_main.c

index c5eca10..968ea9a 100644 (file)
@@ -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;