Xinming Hu <huxm@xxxxxxxxxxx> wrote: > From: Limin Zhu <liminzhu@xxxxxxxxxxx> > > (1) Change virtual interface operation in cfg80211 process reset and > reinitilize private data structure. > (2) Scan result event processed in main process will dereference private > data structure concurrently, ocassionly crash the kernel. > > The cornel case could be trigger by below steps: > (1) wpa_cli mlan0 scan > (2) ./hostapd mlan0.conf > > Cfg80211 asynchronous scan procedure is not all the time operated > under rtnl lock, here we add the protect to serialize the cfg80211 > scan and change_virtual interface operation. > > Signed-off-by: Limin Zhu <liminzhu@xxxxxxxxxxx> > Signed-off-by: Xinming Hu <huxm@xxxxxxxxxxx> Patch applied to wireless-drivers-next.git, thanks. c61cfe49f0f0 mwifiex: cfg80211: do not change virtual interface during scan processing -- https://patchwork.kernel.org/patch/10084299/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches