Date: Wed, 19 Aug 2015 23:38:57 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-wireless@FreeBSD.org Subject: [Bug 202502] [net80211] [patch]: check and reset (if necessary) currently selected channel before device initialization Message-ID: <bug-202502-21060@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202502 Bug ID: 202502 Summary: [net80211] [patch]: check and reset (if necessary) currently selected channel before device initialization Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: wireless Assignee: freebsd-wireless@FreeBSD.org Reporter: s3erios@gmail.com Keywords: patch Created attachment 160122 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=160122&action=edit Fix the issue and remove workaround from the wpi driver In case, when interface is recreated (create -> destroy -> create), some values (like ic->ic_curchan) are left unchanged and may be incompatible with new mode. As an example: 1) ifconfig wlan0 create wlandev <dev> wlanmode ahdemo channel <some NOADHOC channel> 2) ifconfig wlan0 destroy 3) ifconfig wlan0 create wlandev <dev> wlanmode ibss ssid ssid 4) ifconfig wlan0 up may result in incorrect ic->ic_curchan value passed into driver and may lead to crash (for example, wpi firmware throws an error here). This patch adds a check into ieee80211_start_locked() and resets ic->ic_curchan to &ic->ic_channels[0] when the channel is incompatible with current mode. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202502-21060>