diff options
author | Luciano Coelho <luciano.coelho@nokia.com> | 2009-12-11 08:40:46 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:31:30 -0500 |
commit | a2d0e3f13037fa7dc4094c47e0378800a064ee26 (patch) | |
tree | 18147a24093cf62e641e95b21bb40a317bd68e5d /drivers | |
parent | 9cf25fed6a3b1c0792cbab3e934a4e2b6736d284 (diff) |
wl1271: limit TX power to 25dBm for every channel
The wl1271 firmware supports maximun 25.5dBm, so the driver was returning
-EINVALID to anything above that. This patch uses the channel max_power
option to limit the TX power to 25dBm.
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index f6d42e613a5..7f164e53221 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -1675,19 +1675,19 @@ static struct ieee80211_rate wl1271_rates[] = { | |||
1675 | 1675 | ||
1676 | /* can't be const, mac80211 writes to this */ | 1676 | /* can't be const, mac80211 writes to this */ |
1677 | static struct ieee80211_channel wl1271_channels[] = { | 1677 | static struct ieee80211_channel wl1271_channels[] = { |
1678 | { .hw_value = 1, .center_freq = 2412}, | 1678 | { .hw_value = 1, .center_freq = 2412, .max_power = 25 }, |
1679 | { .hw_value = 2, .center_freq = 2417}, | 1679 | { .hw_value = 2, .center_freq = 2417, .max_power = 25 }, |
1680 | { .hw_value = 3, .center_freq = 2422}, | 1680 | { .hw_value = 3, .center_freq = 2422, .max_power = 25 }, |
1681 | { .hw_value = 4, .center_freq = 2427}, | 1681 | { .hw_value = 4, .center_freq = 2427, .max_power = 25 }, |
1682 | { .hw_value = 5, .center_freq = 2432}, | 1682 | { .hw_value = 5, .center_freq = 2432, .max_power = 25 }, |
1683 | { .hw_value = 6, .center_freq = 2437}, | 1683 | { .hw_value = 6, .center_freq = 2437, .max_power = 25 }, |
1684 | { .hw_value = 7, .center_freq = 2442}, | 1684 | { .hw_value = 7, .center_freq = 2442, .max_power = 25 }, |
1685 | { .hw_value = 8, .center_freq = 2447}, | 1685 | { .hw_value = 8, .center_freq = 2447, .max_power = 25 }, |
1686 | { .hw_value = 9, .center_freq = 2452}, | 1686 | { .hw_value = 9, .center_freq = 2452, .max_power = 25 }, |
1687 | { .hw_value = 10, .center_freq = 2457}, | 1687 | { .hw_value = 10, .center_freq = 2457, .max_power = 25 }, |
1688 | { .hw_value = 11, .center_freq = 2462}, | 1688 | { .hw_value = 11, .center_freq = 2462, .max_power = 25 }, |
1689 | { .hw_value = 12, .center_freq = 2467}, | 1689 | { .hw_value = 12, .center_freq = 2467, .max_power = 25 }, |
1690 | { .hw_value = 13, .center_freq = 2472}, | 1690 | { .hw_value = 13, .center_freq = 2472, .max_power = 25 }, |
1691 | }; | 1691 | }; |
1692 | 1692 | ||
1693 | /* can't be const, mac80211 writes to this */ | 1693 | /* can't be const, mac80211 writes to this */ |