staging: vt6656: mac80211 conversion: vRunCommand change beacon
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 25 Jun 2014 20:14:30 +0000 (21:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:21:20 +0000 (20:21 -0400)
Remove bMgrPrepareBeaconToSend

Check that vif is not null

Call vnt_beacon_make and turn on TCR_AUTOBCNTX.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/wcmd.c

index 85adc1cd33c16954814606ea99a526992757f849..3095689094fe1adb98fd45bfca322749791aa19e 100644 (file)
@@ -843,7 +843,13 @@ void vRunCommand(struct work_struct *work)
                break;
 
        case WLAN_CMD_BECON_SEND_START:
-               bMgrPrepareBeaconToSend(pDevice, pMgmt);
+               if (!pDevice->vif)
+                       break;
+
+               vnt_beacon_make(pDevice, pDevice->vif);
+
+               vnt_mac_reg_bits_on(pDevice, MAC_REG_TCR, TCR_AUTOBCNTX);
+
                break;
 
        case WLAN_CMD_SETPOWER_START: