iwlagn: fix dual-mode RXON
commit2b9253d2a0439bd247d9384921ff23e7ac6bba52
authorJohannes Berg <johannes.berg@intel.com>
Fri, 27 May 2011 15:40:26 +0000 (27 08:40 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 1 Jun 2011 19:36:32 +0000 (1 15:36 -0400)
treec49499d5be294f4e8d8297a246ff3a8264640bd8
parent5beaaf3756aef42f31747d81b0676c8ccf59c6c4
iwlagn: fix dual-mode RXON

 The PAN context has three states: disabled, disassociated
 and associated. It seems that wasn't quite as much of an
 issue in previous versions of the microcode, but now we
 really have to use all the three states properly. So add
 code to switch accordingly.

Additionally, PAN parameters need to be sent differently
and the timing for PAN RXON needs to be inbetween.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-rxon.c