]> git.baikalelectronics.ru Git - kernel.git/commit
virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED
authorCody Schuffelen <schuffelen@google.com>
Wed, 6 Feb 2019 23:54:15 +0000 (15:54 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2019 16:10:48 +0000 (17:10 +0100)
commit475e6857415de20838935eb7f25110a54c4c6eba
tree89d8fd26de49973982eab86b2ff0321c6022d78d
parentb3bf712f10cf5b19b5fb2e6813d03f5bae1fa545
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>
drivers/net/wireless/virt_wifi.c