wifi: cfg80211: remove links only on AP
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Jun 2023 13:36:04 +0000 (16:36 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Jun 2023 11:30:53 +0000 (13:30 +0200)
commit34d4e3eb67fed9c19719bedb748e5a8b6ccc97a5
tree3f32e4aa3f7076a460da6f0c8262ce2a9d07552e
parent15846f95ab01b71fdb1cef8df73680aad41edf70
wifi: cfg80211: remove links only on AP

Since links are only controlled by userspace via cfg80211
in AP mode, also only remove them from the driver in that
case.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230608163202.ed65b94916fa.I2458c46888284cc5ce30715fe642bc5fc4340c8f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c