Commit 591e73ee authored by Johannes Berg's avatar Johannes Berg

wifi: mac80211: properly skip link info driver update

If the interface isn't (yet) added to the driver, skip the
link info update. This was previously done for the BSS info
changes, but I forgot to copy the same check here.

Fixes: 7b7090b4 ("wifi: mac80211: split bss_info_changed method")
Reported-by: syzbot+bce2ca140cc00578ed07@syzkaller.appspotmail.com
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent c77bfab9
...@@ -281,6 +281,9 @@ void ieee80211_link_info_change_notify(struct ieee80211_sub_if_data *sdata, ...@@ -281,6 +281,9 @@ void ieee80211_link_info_change_notify(struct ieee80211_sub_if_data *sdata,
if (!changed || sdata->vif.type == NL80211_IFTYPE_AP_VLAN) if (!changed || sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
return; return;
if (!check_sdata_in_driver(sdata))
return;
drv_link_info_changed(local, sdata, link_id, changed); drv_link_info_changed(local, sdata, link_id, changed);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment