]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iwm: fix regression from r365419 (ieee80211_media_change())
authorBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 11 Sep 2020 14:18:47 +0000 (14:18 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 11 Sep 2020 14:18:47 +0000 (14:18 +0000)
commitaaa1fdb87b7a9219e88f97fe0638f4ab166681e5
treeab84672dda95a343a6d2afa93d80e4854bccd769
parentecebb3cc1d2d074defc302d8ae6820bb6b20d4fe
iwm: fix regression from r365419 (ieee80211_media_change())

In r365419 ieee80211_media_change() callers were updated to not longer
act on the obselete ENETRESET return code.
While in the old days iwm has done a stop/init cycle in these cases,
this was not executed since r193340.
As a consequence simplify iwm code as well by passing ieee80211_media_change()
right to ieee80211_vap_attach() as there is no more need for a local
implementation.

Reported by: Tomoaki AOKI (junchoon dec.sakura.ne.jp)
Tested by: Tomoaki AOKI (junchoon dec.sakura.ne.jp)
MFC after: 3 days
X-MFC: fix is already in stable/12
PR: 248955
sys/dev/iwm/if_iwm.c