Bug ID: 202502
           Summary: [net80211] [patch]: check and reset (if necessary)
                    currently selected channel before device
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: wireless
          Keywords: patch

Created attachment 160122
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
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.
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to