wifi: mac80211: add more warnings about inserting sta info
authorBenjamin Berg <benjamin.berg@intel.com>
Sun, 27 Aug 2023 11:05:23 +0000 (14:05 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 10:32:38 +0000 (12:32 +0200)
commit79aa3a09a7ff03c66d3f35a157ead0abb7e49812
tree9e68a7fc16169753c4ce0e0c2045acaf74dca64a
parent5806ef25bc6e6cf0c04005ff25a4585437d567de
wifi: mac80211: add more warnings about inserting sta info

The sta info needs to be inserted before its links may be modified.
Add a few warnings to prevent accidental usage of these functions.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230827135854.eeb43b3cc9e3.I5fd8236f70e64bf6268f33c883f7a878d963b83e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c