[Bug 202502] [net80211] [patch]: check and reset (if necessary) currently selected channel before device initialization
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Aug 19 23:38:58 UTC 2015
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 at FreeBSD.org
Reporter: s3erios at 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.
More information about the freebsd-wireless
mailing list