diff options
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index 4b274562f965..8f66903641b9 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -944,6 +944,11 @@ int lbs_set_scan(struct net_device *dev, struct iw_request_info *info, | |||
944 | 944 | ||
945 | lbs_deb_enter(LBS_DEB_WEXT); | 945 | lbs_deb_enter(LBS_DEB_WEXT); |
946 | 946 | ||
947 | if (!priv->radio_on) { | ||
948 | ret = -EINVAL; | ||
949 | goto out; | ||
950 | } | ||
951 | |||
947 | if (!netif_running(dev)) { | 952 | if (!netif_running(dev)) { |
948 | ret = -ENETDOWN; | 953 | ret = -ENETDOWN; |
949 | goto out; | 954 | goto out; |