virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Acked-by Greg Hartman <[email protected]>
--- drivers/net/wireless/virt_wifi.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireless/virt_wifi.c +0 -1
@@ -360,7 +360,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);
Signature · 1 line
2.20.1.611.gfbb209baf1-goog