mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-02 11:13:02 +09:00
UPSTREAM: virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED
REGULATORY_WIPHY_SELF_MANAGED as set here breaks NL80211_CMD_GET_REG,
because it expects the wiphy to do regulatory management. Since
virt_wifi does not do regulatory management, this triggers a WARN_ON in
NL80211_CMD_GET_REG and fails the netlink command.
Removing REGULATORY_WIPHY_SELF_MANAGED fixes the problem and the virtual
wireless network continues to work.
Signed-off-by: Cody Schuffelen <schuffelen@google.com>
Acked-by: Alistair Strachan <astrachan@google.com>
Acked-by: Greg Hartman <ghartman@google.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
(cherry picked from commit f440b12545)
Bug: 119771992
Change-Id: Ida660b77a2f091e7aaabcecf8a60e66cc2f1f91d
Signed-off-by: Alistair Strachan <astrachan@google.com>
This commit is contained in:
committed by
Alistair Strachan
parent
6f994bf048
commit
9c1c6be308
@@ -365,7 +365,6 @@ static struct wiphy *virt_wifi_make_wiphy(void)
|
||||
wiphy->bands[NL80211_BAND_5GHZ] = &band_5ghz;
|
||||
wiphy->bands[NL80211_BAND_60GHZ] = NULL;
|
||||
|
||||
wiphy->regulatory_flags = REGULATORY_WIPHY_SELF_MANAGED;
|
||||
wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
|
||||
|
||||
priv = wiphy_priv(wiphy);
|
||||
|
||||
Reference in New Issue
Block a user