mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
cfg80211: identically validate beacon interval for AP/MESH/IBSS
Beacon interval interface combinations validation was missing for MESH/IBSS join, add those. Johannes: also move the beacon interval check disallowing really tiny and really big intervals into the common function, which adds it for AP mode. Signed-off-by: Purushottam Kushwaha <pkushwah@qti.qualcomm.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
7f8ed01ea5
commit
12d20fc918
2 changed files with 10 additions and 8 deletions
|
@ -1559,7 +1559,7 @@ int cfg80211_validate_beacon_int(struct cfg80211_registered_device *rdev,
|
|||
struct wireless_dev *wdev;
|
||||
int res = 0;
|
||||
|
||||
if (!beacon_int)
|
||||
if (beacon_int < 10 || beacon_int > 10000)
|
||||
return -EINVAL;
|
||||
|
||||
list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue