iwlwifi: mvm: don't read system time when modifying AP/GO MAC
authorJohannes Berg <johannes.berg@intel.com>
Thu, 28 Feb 2013 13:05:14 +0000 (14:05 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 15:47:54 +0000 (16:47 +0100)
commit506a81e6ba1148a4435dec95651cd93874c2b7cf
treec8fc7e20b647cfe210dbfc255552baab63d04266
parentb1f553c7484b983aac20c107b9766804b69cf73f
iwlwifi: mvm: don't read system time when modifying AP/GO MAC

When modifying a MAC, we update its beacon system time which
is taken as a base to calculate TBTT. The firmware doesn't use
the new timestamp because the time is never used after the MAC
and broadcast station were added, but it is safer to not rely
on this and avoids the overhead of reading the register every
time the MAC is updated.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
drivers/net/wireless/iwlwifi/mvm/mvm.h