iwlwifi: revamp bss_info_changed
commitd7129e190c3107db8ac11a9e51035641b68d2aa7
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 12 Jun 2009 20:22:48 +0000 (12 13:22 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Jun 2009 19:05:52 +0000 (15 15:05 -0400)
tree5ff7d6bb71d3f37121c415ff049031dcb44e3e44
parent87e501b351ed9d837e63f6506b7e66331a69ed58
iwlwifi: revamp bss_info_changed

My earlier patch,
"mac80211: unify config_interface and bss_info_changed"
introduced a bug in iwlwifi where it will do some things
incorrectly now when reassociating.

Revamp iwl_bss_info_changed to fix that issue and make it
easier to read. Also, while at it, add comments about things
that it should do but currently doesn't.

Finally, also improve the locking in the function.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-core.c