]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
WiFi: fix ieee80211_media_change() callers
authorBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 7 Sep 2020 15:35:40 +0000 (15:35 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 7 Sep 2020 15:35:40 +0000 (15:35 +0000)
commitc6167b4bf510d82035e8c8db3b0b074045b90916
tree90ea109be3f420769bc4954b03001a21ed71d76c
parent5e20b96c6593c24e56a11e1f739dd2fb27cd22f3
WiFi: fix ieee80211_media_change() callers

In r178354 with the introduction of multi-bss ("vap") support factoring
out started and with r193340 ieee80211_media_change() no longer returned
ENETRESET but only 0 or error.
As ieee80211(9) tells the ieee80211_media_change() function should not
be called directly but is registered with ieee80211_vap_attach() instead.

Some drivers have not been fully converted.  After fixing the return
checking some of these functions were simply wrappers between
ieee80211_vap_attach() and ieee80211_media_change(), so remove the extra
function, where possible as well.

PR: 248955
Submitted by: Tong Zhang (ztong0001 gmail.com) (original)
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
sys/dev/ath/if_ath.c
sys/dev/bwi/if_bwi.c
sys/dev/iwm/if_iwm.c
sys/dev/iwn/if_iwn.c
sys/dev/mwl/if_mwl.c
sys/dev/otus/if_otus.c
sys/dev/usb/wlan/if_run.c
sys/dev/wtap/if_wtap.c