Bug #6770
closed802.11 stack on FreeBSD 11 requires changes to support its new device creation method
100%
Description
On FreeBSD 11 you have to clone the interface and the wireless device (e.g. ath0) does not show in ifconfig.
The list of current wireless devices is in the net.wlan.devices
sysctl OID so fetching them from there is easy, but we lose some of the extra info we had before pre-assignment, such as the MAC address of ath0.
You can make it show up temporarily by running:
ifconfig wlan0 create wlandev ath0
You can then assign that interface and use it, but unless you have an earlyshellcmd to bring it back it'll fail on the next boot.
It also looks like they've changed it so that the cloned device name must be wlan<number> which will require all of our existing wireless device name/assignments to change. (e.g. ath0_wlan0 => wlan0)
Updated by Kill Bill about 8 years ago
I guess you produced a typo in the latest commit.
$clone_exists = falsek;
https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/interfaces_wireless_edit.php#L100
Updated by Renato Botelho about 8 years ago
Kill Bill wrote:
I guess you produced a typo in the latest commit.
[...]
https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/interfaces_wireless_edit.php#L100
Jim Pingle fixed it. Thanks for spotting that
Updated by Jim Pingle about 8 years ago
- % Done changed from 0 to 80
It works on the latest CE snapshot from overnight, but there is one regression from the previous behavior. At the moment you have to create the new wireless interface first from the wireless tab, then assign it. Where before you could assign first and that initial instance was created automatically. We're looking into that now.
Updated by Renato Botelho about 8 years ago
- Status changed from Confirmed to Feedback
- % Done changed from 80 to 100
After discussed it, we decided to let user create wireless clone interface before assign it and remove any special treatment it had in the past.
Updated by Jim Pingle almost 8 years ago
- Status changed from Feedback to Resolved
It's working well now.
I updated the wiki and book to follow the new requirement, and made a slight adjustment to the note on the assignment page. It's also mentioned on the 2.4 changes wiki doc so it should be well-covered and hard to miss.