summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2014-06-28 23:55:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-29 14:25:53 -0700
commit1ecd083edb1cade7e1537294c5013122304d5823 (patch)
tree4d7fa42eb005f83d9e491e3afd16b6c624cedb31
parentd3584775e94d0baa61a1c2cde7fb93a931e966de (diff)
staging: vt6656: device_init_registers move out vnt_set_bss_mode
Move to vnt_add_interface and allow to refresh at the start of every software scan in vnt_sw_scan_start Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6656/main_usb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c
index e0ed1bb36c6c..14845ec94f7e 100644
--- a/drivers/staging/vt6656/main_usb.c
+++ b/drivers/staging/vt6656/main_usb.c
@@ -438,7 +438,6 @@ static int device_init_registers(struct vnt_private *pDevice)
pDevice->bShortSlotTime = false;
BBvSetShortSlotTime(pDevice);
- vnt_set_bss_mode(pDevice);
pDevice->byRadioCtl = pDevice->abyEEPROM[EEP_OFS_RADIOCTL];
pDevice->bHWRadioOff = false;
@@ -749,6 +748,8 @@ static int vnt_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
priv->op_mode = vif->type;
+ vnt_set_bss_mode(priv);
+
/* LED blink on TX */
vnt_mac_set_led(priv, LEDSTS_STS, LEDSTS_INTER);
@@ -992,6 +993,7 @@ static void vnt_sw_scan_start(struct ieee80211_hw *hw)
{
struct vnt_private *priv = hw->priv;
+ vnt_set_bss_mode(priv);
/* Set max sensitivity*/
BBvUpdatePreEDThreshold(priv, true);
}