wifi: mac80211: pass roc->sdata to drv_cancel_remain_on_channel()
authorAnjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Thu, 8 Jun 2023 13:35:58 +0000 (16:35 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jun 2023 10:20:08 +0000 (12:20 +0200)
commitc6968d4fc9aac110d607722d92fc17dfa65f0716
tree7f11ceb25912f789eceeafd96ea2fb1f60f09d86
parent4c2d68f7981d7794b03fb5035208e6dd3014c9bc
wifi: mac80211: pass roc->sdata to drv_cancel_remain_on_channel()

In suspend flow "sdata" is NULL, destroy all roc's which are started.
pass "roc->sdata" to drv_cancel_remain_on_channel() to avoid NULL
dereference and destroy that roc

Signed-off-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230608163202.c678187a308c.Ic11578778655e273931efc5355d570a16465d1be@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/offchannel.c