projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c86664e
)
rndis_wlan: use power save only for BCM4320b
author
Jussi Kivilinna
<
[email protected]
>
Thu, 24 Feb 2011 10:25:42 +0000
(12:25 +0200)
committer
John W. Linville
<
[email protected]
>
Fri, 25 Feb 2011 20:21:51 +0000
(15:21 -0500)
BCM4320a breaks when enabling power save (bug 29732). So disable power save
for anything but BCM4320b that is known to work.
Signed-off-by: Jussi Kivilinna <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/rndis_wlan.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rndis_wlan.c
b/drivers/net/wireless/rndis_wlan.c
index 848cc2cce247fb5781255cda3b36477db0e2a959..518542b4bf9e87a0571431d4374842b72ef62faa 100644
(file)
--- a/
drivers/net/wireless/rndis_wlan.c
+++ b/
drivers/net/wireless/rndis_wlan.c
@@
-2597,6
+2597,9
@@
static int rndis_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
__le32 mode;
int ret;
+ if (priv->device_type != RNDIS_BCM4320B)
+ return -ENOTSUPP;
+
netdev_dbg(usbdev->net, "%s(): %s, %d\n", __func__,
enabled ? "enabled" : "disabled",
timeout);