ath9k: Cleanup bss_info_changed callback
authorSujith <Sujith.Manoharan@atheros.com>
Mon, 16 Nov 2009 06:10:48 +0000 (11:40 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Nov 2009 22:09:11 +0000 (17:09 -0500)
commitc6089ccc22377bcbf055ece6a45b931a02630824
treec624d6b812c47ce2ddc01c1a6ea86025518cc577
parent827e69bf6734193d7a6f47f0435db7ebef1b636e
ath9k: Cleanup bss_info_changed callback

* Remove a code chunk dealing with operating mode changes.
  As noted, all such policy changes are to be done in
  add_interface.

* Remove pointless check for empty BSSID.
  Also, remove mode checks - mac80211 does all the needed checks.

* Handle enabling/disabling beacon transmission properly.

* Handle beacon interval changes for AP mode.
  The original code depended on config_interface() to update
  the HW TSF. Since that callback has been removed, handle
  it properly.

* Remove unneeded code dealing with key/privacy.

* Set the chainmasks to 1x1 for IBSS when the BSSID is set.
  This was happening uncondionally before.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c