staging: vt6655: reset tsf on dissociation
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 29 Oct 2014 17:44:09 +0000 (17:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 20:31:31 +0000 (13:31 -0700)
Ensuring that tsf counter does not run while idle.

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

index 968ea9aa0efbfe2543a944107f5dcace8ce1b051..07d2101613d8ac1ed571b2fe6886a94d02374f3b 100644 (file)
@@ -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);
                }
        }
 }