iwlwifi: mvm: Handle failed beacon transmissions during CSA
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 10 Nov 2014 09:10:11 +0000 (11:10 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 24 Nov 2014 06:30:29 +0000 (08:30 +0200)
commit7ef0aab66b317ff4d818966b2104c900c7126ec8
tree14e643acbf19c1a9146c56e9a4f76417374ccb17
parent6fd1fb63abeb78fd7fe30f08f478732ad601702c
iwlwifi: mvm: Handle failed beacon transmissions during CSA

The spec requires to decrement the CSA counters based on TBTT,
regardless if the beacon was actually transmitted. Previously, the fw
would send beacon notifications only for successfully transmitted
beacons. This behavior resulted in inaccurate CSA countdown. In order
to address this issue, the fw was changed to send beacon
notifications also for not transmitted beacons. Such notifications
have TX_STATUS_INTERNAL_ABORT (0x92).
Don't start the CSA countdown before first successfully transmitted
beacon, in order to guarantee that the CSA is announced for a
required period.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h