Bug 257229 - net-mgmt/wifimgr with multiple Wi-Fi interfaces
Summary: net-mgmt/wifimgr with multiple Wi-Fi interfaces
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-17 10:14 UTC by Graham Perrin
Modified: 2021-08-03 18:13 UTC (History)
2 users (show)

See Also:
fbsd: maintainer-feedback+


Attachments
Screenshot: Internet connectivity with wlan1 but no sign of connectivity in wifimgr (93.65 KB, image/png)
2021-07-17 10:14 UTC, Graham Perrin
no flags Details
wifimgr showing all networks (127.75 KB, image/png)
2021-07-17 10:15 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin 2021-07-17 10:14:21 UTC
Created attachment 226511 [details]
Screenshot: Internet connectivity with wlan1 but no sign of connectivity in wifimgr

Please: is support for multiple interfaces out of scope? 

The attached screenshot shows wlan1 in use – after 
service netif stop wlan0 
– but the connectivity is not shown when wifimgr is run.
Comment 1 Graham Perrin 2021-07-17 10:15:27 UTC
Created attachment 226512 [details]
wifimgr showing all networks

wlan1 is connected to SSID 'piano' but there's no sign of connectivity in wifimgr.
Comment 2 J.R. Oldroyd 2021-07-17 12:16:36 UTC
wifimgr looks for the first interface configured in /etc/rc.conf as either:
    ifconfig_XYZN="... WPA ..."
or
    wpa_supplicant_flags="... -i XYZN ..."

If you re-order your config in /etc/rc.conf so that your desired interface is first, wifimgr will work on that interface.

As for your actual question - supporting multiple interfaces - this would require some reworking of the code which currently only handles one interface.  I can put that on a todo list, but it isn't something that I anticipate doing soon.
Comment 3 Graham Perrin 2021-07-17 13:33:40 UTC
(In reply to J.R. Oldroyd from comment #2)

Thanks! 

I guess, I can: 

netif_nic_seq="wlan1 wlan0"
Comment 4 J.R. Oldroyd 2021-07-18 19:58:21 UTC
A development version 1.17.2 with, among other things, has initial support for multiple wifi interfaces, has been made available to the OP for testing and feedback.
Comment 5 J.R. Oldroyd 2021-08-02 11:19:34 UTC
No feedback has yet been received from the OP.

The current development version, wifimgr-1.17.7, is available for download from the project web site:
    https://opal.com/src/wifimgr/

Since adding support for multiple WiFi interfaces involved a major recode of the configuration parser for detecting the wlanN interfaces and the code that finds aggregate interfaces (e.g., laggN interfaces that use wlanN) as well as changes to many of wifimgr's functions that handle these interfaces, we are requesting feedback that nothing got broken before publishing a FreeBSD port update.

Anyone wishing to test the development version is requested to download it from the project web site.  Please then send feedback.  Thanks.
Comment 6 Graham Perrin 2021-08-03 18:13:32 UTC
(In reply to J.R. Oldroyd from comment #5)

My apologies; I have been busy with what might be a permanent move of my boot disk from one notebook to another (with some complications) ...