UPSTREAM: virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED
authorCody Schuffelen <schuffelen@google.com>
Wed, 6 Feb 2019 23:54:15 +0000 (15:54 -0800)
committerAlistair Strachan <astrachan@google.com>
Mon, 22 Apr 2019 21:19:31 +0000 (14:19 -0700)
commita2f609a0cf7f83d40cad5e73b54a981e90f1927b
tree0cec4934dcffeef1dfa6e21e1df316066f6a4457
parente89526d2d303244c5ca32a74d2762e1ffd461443
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 f440b125450dfc65ce0386eb231da2f663c45ca0)
Bug: 119771992
Change-Id: Ida660b77a2f091e7aaabcecf8a60e66cc2f1f91d
Signed-off-by: Alistair Strachan <astrachan@google.com>
drivers/net/wireless/virt_wifi.c