From: Malcolm Priestley Date: Wed, 29 Oct 2014 17:44:09 +0000 (+0000) Subject: staging: vt6655: reset tsf on dissociation X-Git-Tag: v3.19-rc1~66^2~643 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c7b14ea09632cb92658d7b1f758de2abd71c00f3;p=karo-tx-linux.git staging: vt6655: reset tsf on dissociation Ensuring that tsf counter does not run while idle. Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 968ea9aa0efb..07d2101613d8 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -2980,6 +2980,11 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw, CARDvSetFirstNextTBTT(priv->PortOffset, conf->beacon_int); + } else { + VNSvOutPortB(priv->PortOffset + MAC_REG_TFTCTL, + TFTCTL_TSFCNTRST); + VNSvOutPortB(priv->PortOffset + MAC_REG_TFTCTL, + TFTCTL_TSFCNTREN); } } }