Page MenuHomeFreeBSD
Feed Advanced Search

Yesterday

adrian accepted D36469: wtap(4): implement monitor mode and handle radiotap.
Wed, Apr 17, 5:24 PM · wireless
adrian added inline comments to D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
Wed, Apr 17, 5:22 PM · wireless

Feb 20 2024

lwhsu added a comment to D37973: wtapctl(8): Introduce new tool for wtap(4).
In D37973#1003520, @bz wrote:

@lwhsu I'll just pick the first review given they all live in a window here; last time I checked and asked if they were ready for review I was told to hold off for further changes? Have they been addressed, as in, is the stack of wtap changes ready for review?

Feb 20 2024, 8:28 PM · wireless
bz added a comment to D37973: wtapctl(8): Introduce new tool for wtap(4).

@lwhsu I'll just pick the first review given they all live in a window here; last time I checked and asked if they were ready for review I was told to hold off for further changes? Have they been addressed, as in, is the stack of wtap changes ready for review?

Feb 20 2024, 5:46 PM · wireless
lwhsu added a reviewer for D36469: wtap(4): implement monitor mode and handle radiotap: cc.
Feb 20 2024, 3:46 PM · wireless
lwhsu added a reviewer for D36480: wtap(4): write atf test scripts to test all iface mode: cc.
Feb 20 2024, 3:46 PM · wireless
lwhsu added a reviewer for D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2: cc.
Feb 20 2024, 3:45 PM · wireless
lwhsu added a reviewer for D37973: wtapctl(8): Introduce new tool for wtap(4): cc.
Feb 20 2024, 3:45 PM · wireless

Oct 30 2023

cc added a member for wireless: cc.
Oct 30 2023, 9:37 PM

May 2 2023

enweiwu updated the diff for D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
May 2 2023, 4:52 PM · wireless
enweiwu added inline comments to D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
May 2 2023, 4:51 PM · wireless
enweiwu updated the diff for D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
May 2 2023, 4:46 PM · wireless

Apr 20 2023

bz added a comment to D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.

Can you upload this with more context? Either use arc or git diff -U9999 when creating the diff. That'll help to see surrounding code (and probably stop asking me silly questions ;-) )

Apr 20 2023, 7:30 PM · wireless

Apr 19 2023

enweiwu updated the diff for D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
Apr 19 2023, 4:47 PM · wireless

Apr 14 2023

misha added a member for wireless: misha.
Apr 14 2023, 11:22 AM

Mar 26 2023

guest-patmaddox removed a watcher for wireless: guest-patmaddox.
Mar 26 2023, 6:49 PM
guest-patmaddox added a watcher for wireless: guest-patmaddox.
Mar 26 2023, 11:35 AM

Mar 5 2023

enweiwu updated the diff for D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
Mar 5 2023, 8:15 AM · wireless
enweiwu updated the diff for D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
Mar 5 2023, 8:05 AM · wireless
enweiwu abandoned D38753: wpa_supplicant(8): fix the connection-fail problem.

See D38807.

Mar 5 2023, 7:51 AM · wireless

Mar 3 2023

vidwer_fbsdbugs_gmail.com removed a member for wireless: vidwer_fbsdbugs_gmail.com.
Mar 3 2023, 9:31 PM

Mar 2 2023

enweiwu abandoned D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

See D38807 and D38753.

Mar 2 2023, 12:40 PM · wireless
enweiwu updated the diff for D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
Mar 2 2023, 12:27 PM · wireless

Feb 27 2023

cy added a comment to D38753: wpa_supplicant(8): fix the connection-fail problem.
In D38753#883173, @bz wrote:

The "backout+logging" change is at https://reviews.freebsd.org/D38807

Feb 27 2023, 12:54 PM · wireless
bz added a comment to D38753: wpa_supplicant(8): fix the connection-fail problem.

The "backout+logging" change is at https://reviews.freebsd.org/D38807

Feb 27 2023, 10:30 AM · wireless
bz added a comment to D38753: wpa_supplicant(8): fix the connection-fail problem.
In D38753#883103, @cy wrote:

IMO we should revert the specific upstream commit or set IFF_UP when the interface is downed or brought up. The below should work.

..

The above has been submitted in https://reviews.freebsd.org/D38805.

Feb 27 2023, 10:24 AM · wireless
cy added a comment to D38753: wpa_supplicant(8): fix the connection-fail problem.

IMO we should revert the specific upstream commit or set IFF_UP when the interface is downed or brought up. The below should work.

Feb 27 2023, 3:29 AM · wireless
cy added a comment to D38753: wpa_supplicant(8): fix the connection-fail problem.
In D38753#882303, @cy wrote:

Feb 24 20:15:57 slippy wpa_supplicant[7099]: wlan0: CTRL-EVENT-DISCONNECTED bssid=4c:60:de:31:3c:62 reason=3 locally_generated=1
Feb 24 20:15:57 slippy wpa_supplicant[7099]: ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Can't assign requested address
Feb 24 20:15:57 slippy wpa_supplicant[7099]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all

Could you provide more logs for tracing? Just guessing by the three lines, the CTRL-EVENT-DISCONNECTED has reason code = 3 in the disauthentication frame, and by the spec, it means "Station has left the basic service area or extended service area and is disauthenticated", it seems weird because you said that re-adding rc scripts will work.

Feb 27 2023, 3:11 AM · wireless

Feb 26 2023

enweiwu added a comment to D38753: wpa_supplicant(8): fix the connection-fail problem.
In D38753#882303, @cy wrote:
Feb 26 2023, 6:54 AM · wireless

Feb 25 2023

cy added a comment to D38753: wpa_supplicant(8): fix the connection-fail problem.

Having tested this, I'm seeing these in syslog and no carrier. It doesn't fix the problem.

Feb 25 2023, 4:46 AM · wireless

Feb 24 2023

cy added a comment to D38753: wpa_supplicant(8): fix the connection-fail problem.

The code looks reasonable to me, so far. I'll test it later tonight.

Feb 24 2023, 5:19 PM · wireless
enweiwu updated the diff for D38753: wpa_supplicant(8): fix the connection-fail problem.
Feb 24 2023, 6:04 AM · wireless
enweiwu updated the diff for D38753: wpa_supplicant(8): fix the connection-fail problem.
Feb 24 2023, 6:03 AM · wireless
enweiwu requested review of D38753: wpa_supplicant(8): fix the connection-fail problem.
Feb 24 2023, 5:48 AM · wireless

Feb 18 2023

enweiwu added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

I think the reason might be (though I haven't traced this yet) is that we exploit a race with ic_parent and the 2d time we come through ieee80211_start_locked() though this time with the interface UP. This then calls ieee80211_new_state_locked() which will then kick off another task. If we manage to call the ioctl for scanning in between we'll still be in INIT. Basically the IFF_DOWN kicks us back to INIT, no scan running and then on IFF_UP it's a simple race for the 1st VAP (only).

Feb 18 2023, 3:23 PM · wireless
enweiwu added a member for wireless: enweiwu.
Feb 18 2023, 8:17 AM
bz added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

I have to apologize again for the messy output I put in earlier.

Feb 18 2023, 12:37 AM · wireless

Feb 17 2023

enweiwu added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

Now that would mean SCAN_ONCE should not be unset and we should not enter in the early case above even if match_bss et al decide they couldn't find a result.

Feb 17 2023, 4:34 PM · wireless

Feb 15 2023

bz added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

I surely ran into the early return part of scan_end(). Here is the most critical condition to indicate why it early return in scan_end(): https://cgit.freebsd.org/src/tree/sys/net80211/ieee80211_scan_sw.c?h=stable/13#n846. In STA mode, ss->ss_ops->scan_end(ss, vap) is pointed to ieee80211_scan_sta::sta_pick_bss(), and this function returned 0 (so the condition is true). It didn't pick any BSS (return 0) because the ieee80211_scan_sta::match_bss() returns 0 if we further trace more codes. And I found that the lines show BSS in the dmesg(8) output above all contains "wep!", and after tracing the codes, the "!" means the BSS didn't match our requirements of wireless setting. In summary, after the scan finished, it find that no suitable BSS is there (in match_bss()'s thoughts) so didn't call scan_done() and directly restart the scanning process.

Feb 15 2023, 7:54 PM · wireless
enweiwu updated the diff for D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

Move ieee80211_notify_scan_done() to a more reasonable place after seeing the comments of @bz.

Feb 15 2023, 5:17 PM · wireless
adrian added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

(also I thought we had a program somewhere in tools/tools/net80211 that would listen to the routing socket for all net80211 messages, to make debugging this easier? if not, we should write one :-)

Feb 15 2023, 5:16 PM · wireless
adrian added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

iirc, and don't quote me on this, the "scan done + restart" stuff can happen when the software scanner is doing things like background scans (which break softmac 11n/11ac/etc devices, sigh, someone needs to employ me for 6 months to properly fix that for softmac devices already) it can start and stop a scan, push up scan results, but not complete it. background scans can be interrupted by active traffic, which means it'll try to do a piecemeal scan before pushing things up.

Feb 15 2023, 5:15 PM · wireless
enweiwu added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

Can you check that what you are seeing is not caused by an early return in ieee80211_scan_sw.c::scan_end() in the block which has a debug message containing "done, restart"?

Feb 15 2023, 5:01 PM · wireless
enweiwu added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

Phabricator should automatically make likes, at least for hashes in plain text:
5fcdc19a81115
d06d7eb09131

Feb 15 2023, 4:03 PM · wireless
enweiwu updated the summary of D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).
Feb 15 2023, 4:02 PM · wireless
bz added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

Can you check that what you are seeing is not caused by an early return in ieee80211_scan_sw.c::scan_end() in the block which has a debug message containing "done, restart"?
It would probably be interesting to see a trace from your investigation when the problem of not reporting the scan end occurs with wlandebug +scan turned on. That'll likely give us an idea why we don't make it to either of the two current ieee80211_notify_scan_done() calls.

Feb 15 2023, 12:25 AM · wireless

Feb 14 2023

bz added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

Phabricator should automatically make likes, at least for hashes in plain text:
5fcdc19a81115
d06d7eb09131

Feb 14 2023, 3:50 PM · wireless
emaste added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

Phabricator should automatically make likes, at least for hashes in plain text:
5fcdc19a81115
d06d7eb09131

Feb 14 2023, 3:21 PM · wireless

Feb 13 2023

enweiwu added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

I have found that Linux drivers don't always notify the scan result event to nl80211, so in wpa_supplicant, Linux code just registers timeout on the scan function (wpa_driver_nl80211_scan()). Once the timeout fire, it reports the EVENT_SCAN_RESULTS to wpa_supplicant_event().

Feb 13 2023, 5:35 AM · wireless

Feb 12 2023

enweiwu added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).
In D38508#876443, @bz wrote:

Has this always been a problem or did something in wpa_supplicant change that it now is a problem?

I traced wpa_supplicant 2.4 but the mechanism (use routing socket to wait for RTM_IEEE80211_SCAN) seems the same as 2.10.

Feb 12 2023, 7:00 AM · wireless

Feb 11 2023

imp added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

There may have been one or two hotels that I've stayed out where I hit this problem...
I'm not at them right now, or I'd test to see if this fixes things.

Feb 11 2023, 10:25 PM · wireless
bz added a comment to D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).

Has this always been a problem or did something in wpa_supplicant change that it now is a problem?

Feb 11 2023, 10:21 PM · wireless
lwhsu added a reviewer for D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8): cy.
Feb 11 2023, 6:04 PM · wireless
enweiwu requested review of D38508: net80211(4): fix the connection-fail problem in wpa_supplicant(8).
Feb 11 2023, 5:59 PM · wireless

Jan 22 2023

jfree created P552 Invalid TXQ id.
Jan 22 2023, 7:00 PM · wireless

Jan 19 2023

pauamma_gundo.com accepted D37973: wtapctl(8): Introduce new tool for wtap(4).

Manual page now LGTM.

Jan 19 2023, 8:24 PM · wireless
enweiwu updated the diff for D37973: wtapctl(8): Introduce new tool for wtap(4).

Remove unnecessary .El and the term "vap" in wtapctl.8.

Jan 19 2023, 10:25 AM · wireless
pauamma_gundo.com requested changes to D37973: wtapctl(8): Introduce new tool for wtap(4).
Jan 19 2023, 12:07 AM · wireless

Jan 17 2023

lkw573_gmail.com removed a member for wireless: lkw573_gmail.com.
Jan 17 2023, 6:53 AM

Jan 16 2023

lwhsu added a reviewer for D37973: wtapctl(8): Introduce new tool for wtap(4): manpages.
Jan 16 2023, 3:32 AM · wireless

Jan 7 2023

enweiwu requested review of D37973: wtapctl(8): Introduce new tool for wtap(4).
Jan 7 2023, 8:37 AM · wireless

Nov 30 2022

ghislain_smartix.llc added a watcher for wireless: ghislain_smartix.llc.
Nov 30 2022, 2:19 AM

Nov 19 2022

lkw573_gmail.com added a member for wireless: lkw573_gmail.com.
Nov 19 2022, 3:33 PM

Nov 9 2022

enweiwu updated the diff for D36469: wtap(4): implement monitor mode and handle radiotap.
Nov 9 2022, 6:23 AM · wireless

Oct 20 2022

enweiwu added a comment to D37070: ifconfig(8): scan list SSID UTF-32 support.
In D37070#841801, @bz wrote:
Oct 20 2022, 4:57 PM · network, wireless
bz added a comment to D37070: ifconfig(8): scan list SSID UTF-32 support.

See also https://reviews.freebsd.org/D32847

Oct 20 2022, 3:29 PM · network, wireless
enweiwu updated the test plan for D37070: ifconfig(8): scan list SSID UTF-32 support.
Oct 20 2022, 3:11 PM · network, wireless
enweiwu requested review of D37070: ifconfig(8): scan list SSID UTF-32 support.
Oct 20 2022, 3:10 PM · network, wireless

Sep 25 2022

enweiwu updated the diff for D36480: wtap(4): write atf test scripts to test all iface mode.
Sep 25 2022, 1:48 PM · wireless

Sep 21 2022

markj removed a member for wireless: markj.
Sep 21 2022, 5:14 PM

Sep 7 2022

lwhsu added inline comments to D36480: wtap(4): write atf test scripts to test all iface mode.
Sep 7 2022, 4:39 PM · wireless
lwhsu added inline comments to D36480: wtap(4): write atf test scripts to test all iface mode.
Sep 7 2022, 4:39 PM · wireless
lwhsu added a comment to D36480: wtap(4): write atf test scripts to test all iface mode.

For the record, we're thinking to move the tools to /usr/sbin as wtapctl(8).

Sep 7 2022, 4:36 PM · wireless
lwhsu added a comment to D36480: wtap(4): write atf test scripts to test all iface mode.

We also need to add this directory to tests/sys/Makefile

Sep 7 2022, 4:33 PM · wireless
enweiwu requested review of D36480: wtap(4): write atf test scripts to test all iface mode.
Sep 7 2022, 12:09 PM · wireless

Sep 6 2022

enweiwu updated the test plan for D36469: wtap(4): implement monitor mode and handle radiotap.
Sep 6 2022, 3:04 PM · wireless
enweiwu updated the test plan for D36469: wtap(4): implement monitor mode and handle radiotap.
Sep 6 2022, 2:22 PM · wireless
enweiwu requested review of D36469: wtap(4): implement monitor mode and handle radiotap.
Sep 6 2022, 2:21 PM · wireless
enweiwu updated the diff for D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
Sep 6 2022, 1:45 PM · wireless

Aug 18 2022

lwhsu added inline comments to D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
Aug 18 2022, 1:47 AM · wireless
lwhsu added inline comments to D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
Aug 18 2022, 1:44 AM · wireless

Aug 17 2022

lwhsu added a reviewer for D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2: wireless.
Aug 17 2022, 3:54 PM · wireless
enweiwu requested review of D36243: wtap(4): Implement STA/HostAP mode and support WPA/WPA2.
Aug 17 2022, 2:56 PM · wireless

Aug 15 2022

bz closed D35841: wtap(4): Implement IBSS mode on wtap(4).
Aug 15 2022, 4:37 PM · wireless
bz added a comment to D35841: wtap(4): Implement IBSS mode on wtap(4).

I'll get this in the next 24 hours.

Aug 15 2022, 6:12 AM · wireless
adrian accepted D35841: wtap(4): Implement IBSS mode on wtap(4).
Aug 15 2022, 12:34 AM · wireless
adrian added inline comments to D35841: wtap(4): Implement IBSS mode on wtap(4).
Aug 15 2022, 12:34 AM · wireless
lwhsu accepted D35841: wtap(4): Implement IBSS mode on wtap(4).

hi! I think this looks ready to land, right?

Aug 15 2022, 12:23 AM · wireless

Aug 14 2022

adrian added a comment to D35841: wtap(4): Implement IBSS mode on wtap(4).

hi! I think this looks ready to land, right?

Aug 14 2022, 9:02 PM · wireless

Aug 12 2022

enweiwu updated the diff for D35841: wtap(4): Implement IBSS mode on wtap(4).
Aug 12 2022, 8:04 AM · wireless

Aug 1 2022

bz closed D35752: wtap(4): Fix bug in wtap_node_write() and wtap_vap_create().
Aug 1 2022, 7:53 PM · wireless
bz added a comment to D35752: wtap(4): Fix bug in wtap_node_write() and wtap_vap_create().
In D35752#816864, @bz wrote:

Can you please update the review after doing a git rebase? It doesn't apply to main.

I've checked that it can be applied to the current HEAD of main branch ( 2c4276aaa2d03217b9c1797196864bbbe4f2d8ea ). Is there anything we missed?

Aug 1 2022, 7:32 PM · wireless
lwhsu added a comment to D35752: wtap(4): Fix bug in wtap_node_write() and wtap_vap_create().
In D35752#816864, @bz wrote:

Can you please update the review after doing a git rebase? It doesn't apply to main.

Aug 1 2022, 5:12 PM · wireless

Jul 28 2022

bz added a comment to D35752: wtap(4): Fix bug in wtap_node_write() and wtap_vap_create().

Can you please update the review after doing a git rebase? It doesn't apply to main.

Jul 28 2022, 10:20 PM · wireless
bz added inline comments to D35841: wtap(4): Implement IBSS mode on wtap(4).
Jul 28 2022, 10:11 PM · wireless

Jul 27 2022

enweiwu added inline comments to D35841: wtap(4): Implement IBSS mode on wtap(4).
Jul 27 2022, 10:29 AM · wireless

Jul 25 2022

adrian added a comment to D35841: wtap(4): Implement IBSS mode on wtap(4).

nice work!

Jul 25 2022, 3:16 PM · wireless
enweiwu updated the test plan for D35841: wtap(4): Implement IBSS mode on wtap(4).
Jul 25 2022, 12:37 PM · wireless

Jul 19 2022

enweiwu updated the diff for D35841: wtap(4): Implement IBSS mode on wtap(4).

Update diff.

Jul 19 2022, 7:47 AM · wireless
enweiwu added inline comments to D35841: wtap(4): Implement IBSS mode on wtap(4).
Jul 19 2022, 7:13 AM · wireless