iwlwifi: correct frequency settings
commit5a3a0352f39c81dfa5c30a190ad04d115616c3e6
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 31 Jan 2011 12:01:35 +0000 (31 13:01 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 31 Jan 2011 20:06:25 +0000 (31 15:06 -0500)
tree9992f869f56493fa17ed2cbb22143cb9aa246028
parent0439f5367c8d8bb2ebaca8d7329f51f3148b2fb2
iwlwifi: correct frequency settings

After commit 59eb21a6504731fc16db4cf9463065dd61093e08
"cfg80211: Extend channel to frequency mapping for 802.11j"
we use uninitialized sband->band when assign channel frequencies, what
results that 5GHz channels have erroneous (zero) center_freq value.

Patch fixes problem and simplifies code a bit.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-core.c