|
@@ -6775,13 +6775,10 @@ nl80211_parse_sched_scan_plans(struct wiphy *wiphy, int n_plans,
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
|
* If scan plans are not specified,
|
|
* If scan plans are not specified,
|
|
|
- * %NL80211_ATTR_SCHED_SCAN_INTERVAL must be specified. In this
|
|
|
|
|
|
|
+ * %NL80211_ATTR_SCHED_SCAN_INTERVAL will be specified. In this
|
|
|
* case one scan plan will be set with the specified scan
|
|
* case one scan plan will be set with the specified scan
|
|
|
* interval and infinite number of iterations.
|
|
* interval and infinite number of iterations.
|
|
|
*/
|
|
*/
|
|
|
- if (!attrs[NL80211_ATTR_SCHED_SCAN_INTERVAL])
|
|
|
|
|
- return -EINVAL;
|
|
|
|
|
-
|
|
|
|
|
interval = nla_get_u32(attrs[NL80211_ATTR_SCHED_SCAN_INTERVAL]);
|
|
interval = nla_get_u32(attrs[NL80211_ATTR_SCHED_SCAN_INTERVAL]);
|
|
|
if (!interval)
|
|
if (!interval)
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|