aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/wext.c')
-rw-r--r--drivers/net/wireless/libertas/wext.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index b1e24723f2f9..3e8d555ba3a9 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -734,6 +734,13 @@ static int lbs_set_power(struct net_device *dev, struct iw_request_info *info,
734 734
735 lbs_deb_enter(LBS_DEB_WEXT); 735 lbs_deb_enter(LBS_DEB_WEXT);
736 736
737 if (!priv->ps_supported) {
738 if (vwrq->disabled)
739 return 0;
740 else
741 return -EINVAL;
742 }
743
737 /* PS is currently supported only in Infrastructure mode 744 /* PS is currently supported only in Infrastructure mode
738 * Remove this check if it is to be supported in IBSS mode also 745 * Remove this check if it is to be supported in IBSS mode also
739 */ 746 */