ath9k: Fix programming of minCCA power threshold
authorSven Eckelmann <sven@narfation.org>
Wed, 29 Jun 2016 16:29:30 +0000 (19:29 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 30 Jun 2016 11:13:31 +0000 (14:13 +0300)
commitaaab50fcea78ae3414c3afc25aae8d0603df34d0
tree7fc4c9c6df18924aaa283caa32311d6dfa451d31
parent0f27ac40fb64dc0ac8254913b414dde3386196f4
ath9k: Fix programming of minCCA power threshold

The function ar9003_hw_apply_minccapwr_thresh takes as second parameter not
a pointer to the channel but a boolean value describing whether the channel
is 2.4GHz or not. This broke (according to the origin commit) the ETSI
regulatory compliance on 5GHz channels.

Fixes: 3533bf6b15a0 ("ath9k: Fix regulatory compliance")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Cc: Simon Wunderlich <sw@simonwunderlich.de>
Cc: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c