Skip to content

Commit

Permalink
cfg80211: Notify all User Hints To self managed wiphys
Browse files Browse the repository at this point in the history
Currently Self Managed WIPHY's are not notified on any
hints other than user cell base station hints.
Self Managed wiphy's basically rely on hints from firmware
and its local regdb for regulatory management, so hints from wireless
core can be ignored. But all user hints needs to be notified
to them to provide flexibility to these drivers to honour or
ignore these user hints.

Currently none of the drivers supporting self managed wiphy
register a notifier with cfg80211. Hence this change does not affect
any other driver behavior.

Signed-off-by: Sriram R <srirrama@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Sriram R authored and Johannes Berg committed Jan 25, 2019
1 parent 4af2175 commit c82c06c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2724,9 +2724,7 @@ static void notify_self_managed_wiphys(struct regulatory_request *request)
list_for_each_entry(rdev, &cfg80211_rdev_list, list) {
wiphy = &rdev->wiphy;
if (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED &&
request->initiator == NL80211_REGDOM_SET_BY_USER &&
request->user_reg_hint_type ==
NL80211_USER_REG_HINT_CELL_BASE)
request->initiator == NL80211_REGDOM_SET_BY_USER)
reg_call_notifier(wiphy, request);
}
}
Expand Down

0 comments on commit c82c06c

Please sign in to comment.