wifi: mac80211: don't allow deactivation of all links
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Mon, 29 Jan 2024 19:00:53 +0000 (20:00 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 2 Feb 2024 13:20:43 +0000 (14:20 +0100)
commitb341590e77d89d8812051fdd2354ff04e12f211b
treeafe7d94f4f3d596bef144f6883a6f456ed9b6009
parent358ddc7bfa980888b69b406a7c4ce0a5b0ac5c30
wifi: mac80211: don't allow deactivation of all links

The set_active_links API is intended for link switching, so switching
to no links at all is not supported.
Add a warning to check that.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240129200054.e3c113f94508.Ia35f927f914bf98dd8f9350dd4f78b1d901b1c1d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/link.c