staging: vt6656: mac80211 conversion: vRunCommand change beacon

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>
This commit is contained in:
Malcolm Priestley 2014-06-25 21:14:30 +01:00 committed by Greg Kroah-Hartman
parent bbdf1bd4d8
commit f31a67ae11
1 changed files with 7 additions and 1 deletions

View 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: