From f31a67ae11b02638eb53838015f62c6aaff634ee Mon Sep 17 00:00:00 2001 From: Malcolm Priestley Date: Wed, 25 Jun 2014 21:14:30 +0100 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vt6656/wcmd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c index 85adc1cd33c1..3095689094fe 100644 --- a/drivers/staging/vt6656/wcmd.c +++ b/drivers/staging/vt6656/wcmd.c @@ -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: -- 2.30.2