diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-03-05 15:31:05 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-16 18:09:28 -0400 |
commit | efeada2c0aa1219b15787da48cfa282803e9d99e (patch) | |
tree | 85c93ecccbb6f6370b62abaabe73c29acd3a91fe /drivers | |
parent | ad5e72ee81ed074cfe6bb2a1ca231b5413efa41f (diff) |
p54: fix iwconfig txpower off
Disabling the receiver logic with P54_FILTER_TYPE_RX_DISABLED is not
supported by all firmwares. However we have an alternative: hibernation.
And the only side effect - so far - is a bit less power consumption. WIN!
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/p54/p54common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c index 42d1cac609a1..f76365057172 100644 --- a/drivers/net/wireless/p54/p54common.c +++ b/drivers/net/wireless/p54/p54common.c | |||
@@ -1680,7 +1680,7 @@ static int p54_setup_mac(struct ieee80211_hw *dev) | |||
1680 | mode = P54_FILTER_TYPE_PROMISCUOUS; | 1680 | mode = P54_FILTER_TYPE_PROMISCUOUS; |
1681 | break; | 1681 | break; |
1682 | default: | 1682 | default: |
1683 | mode = P54_FILTER_TYPE_NONE; | 1683 | mode = P54_FILTER_TYPE_HIBERNATE; |
1684 | break; | 1684 | break; |
1685 | } | 1685 | } |
1686 | 1686 | ||
@@ -1693,7 +1693,7 @@ static int p54_setup_mac(struct ieee80211_hw *dev) | |||
1693 | (mode != P54_FILTER_TYPE_PROMISCUOUS)) | 1693 | (mode != P54_FILTER_TYPE_PROMISCUOUS)) |
1694 | mode |= P54_FILTER_TYPE_TRANSPARENT; | 1694 | mode |= P54_FILTER_TYPE_TRANSPARENT; |
1695 | } else | 1695 | } else |
1696 | mode = P54_FILTER_TYPE_RX_DISABLED; | 1696 | mode = P54_FILTER_TYPE_HIBERNATE; |
1697 | 1697 | ||
1698 | setup->mac_mode = cpu_to_le16(mode); | 1698 | setup->mac_mode = cpu_to_le16(mode); |
1699 | memcpy(setup->mac_addr, priv->mac_addr, ETH_ALEN); | 1699 | memcpy(setup->mac_addr, priv->mac_addr, ETH_ALEN); |