freebsd-dev/sys/dev/wtap
Bjoern A. Zeeb c6167b4bf5 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
2020-09-07 15:35:40 +00:00
..
plugins wtap: clean up empty lines in .c and .h files 2020-09-01 21:45:35 +00:00
wtap_hal wtap: clean up empty lines in .c and .h files 2020-09-01 21:45:35 +00:00
if_medium.c
if_medium.h
if_wtap_module.c wtap: clean up empty lines in .c and .h files 2020-09-01 21:45:35 +00:00
if_wtap.c WiFi: fix ieee80211_media_change() callers 2020-09-07 15:35:40 +00:00
if_wtapioctl.h Fix ieee80211_radiotap(9) usage in wireless drivers: 2019-03-11 01:27:01 +00:00
if_wtapvar.h Remove unused function. 2020-03-04 22:31:41 +00:00