From: Malcolm Priestley Date: Wed, 25 Jun 2014 20:14:30 +0000 (+0100) Subject: staging: vt6656: mac80211 conversion: vRunCommand change beacon X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f31a67ae11b02638eb53838015f62c6aaff634ee;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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: