Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mac80211: always have ieee80211_sta_restart()

When CONFIG_PM isn't defined we don't have the function
ieee80211_sta_restart() compiled in, but we always need
it now for firmware restart. Move it out of the ifdef.

Fixes: 7d352ccf1e99 ("mac80211: Add support to trigger sta disconnect on hardware restart")
Link: https://lore.kernel.org/r/20220312221957.1fa96c72db51.I8ecaa5f9402fede0272161e0531ab930b97fba3e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

+1 -1
+1 -1
net/mac80211/mlme.c
··· 4934 4934 4935 4935 sdata_unlock(sdata); 4936 4936 } 4937 + #endif 4937 4938 4938 4939 void ieee80211_sta_restart(struct ieee80211_sub_if_data *sdata) 4939 4940 { ··· 4970 4969 4971 4970 sdata_unlock(sdata); 4972 4971 } 4973 - #endif 4974 4972 4975 4973 /* interface setup */ 4976 4974 void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata)