diff options
Diffstat (limited to 'drivers/net/wireless/marvell')
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/cfg80211.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c index 1599ae74b066..809678750047 100644 --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c @@ -2664,11 +2664,8 @@ mwifiex_cfg80211_sched_scan_start(struct wiphy *wiphy, struct mwifiex_bg_scan_cfg *bgscan_cfg; struct ieee_types_header *ie; - if (!request || (!request->n_ssids && !request->n_match_sets)) { - wiphy_err(wiphy, "%s : Invalid Sched_scan parameters", - __func__); + if (!request || (!request->n_ssids && !request->n_match_sets)) return -EINVAL; - } wiphy_info(wiphy, "sched_scan start : n_ssids=%d n_match_sets=%d ", request->n_ssids, request->n_match_sets); |