p54: fix iwconfig txpower off
authorChristian Lamparter <chunkeey@web.de>
Thu, 5 Mar 2009 20:31:05 +0000 (21:31 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Mar 2009 22:09:28 +0000 (18:09 -0400)
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>
drivers/net/wireless/p54/p54common.c

index 42d1cac609a1db5fb91879a62b9acc527aff5383..f7636505717259070fcb28ed352a7a48d01d21a3 100644 (file)
@@ -1680,7 +1680,7 @@ static int p54_setup_mac(struct ieee80211_hw *dev)
                        mode = P54_FILTER_TYPE_PROMISCUOUS;
                        break;
                default:
-                       mode = P54_FILTER_TYPE_NONE;
+                       mode = P54_FILTER_TYPE_HIBERNATE;
                        break;
                }
 
@@ -1693,7 +1693,7 @@ static int p54_setup_mac(struct ieee80211_hw *dev)
                    (mode != P54_FILTER_TYPE_PROMISCUOUS))
                        mode |= P54_FILTER_TYPE_TRANSPARENT;
        } else
-               mode = P54_FILTER_TYPE_RX_DISABLED;
+               mode = P54_FILTER_TYPE_HIBERNATE;
 
        setup->mac_mode = cpu_to_le16(mode);
        memcpy(setup->mac_addr, priv->mac_addr, ETH_ALEN);