iwlwifi: fix TX power antenna access
authorJohannes Berg <johannes.berg@intel.com>
Wed, 30 May 2012 08:36:12 +0000 (10:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Jun 2012 18:37:17 +0000 (11:37 -0700)
commit75862961e9b445a9bfce25b9da70ef930a857762
treeba466c6438a17b682b728f08432c82e9840eacc5
parentadf264357dfa43d9c3b79f3885a7dd4b962b36e1
iwlwifi: fix TX power antenna access

commit a5fdde28b4f5fb756032e7ad2c6fcdcffde20958 upstream.

Since my commit
  iwlwifi: use valid TX/RX antenna from hw_params
the config values are pure overrides, not the
real values for all hardware. Therefore, the
EEPROM TX power reading code checks the wrong
values, it should check the hw_params values.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/iwl-eeprom.c