From: Malcolm Priestley Date: Wed, 29 Oct 2014 17:44:08 +0000 (+0000) Subject: staging: vt6655: don't update bUpdateBBVGA when off channel X-Git-Tag: v3.19-rc1~66^2~644 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d855802b8d45cf36622a640b71b58437cfee41d0;p=uclinux-h8%2Flinux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index c5eca1075d3a..968ea9aa0efb 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;