Page MenuHomeFreeBSD

wirelessGroup
ActivePublic

Details

Description

Working on wireless improvements

Recent Activity

Yesterday

adrian added a comment to D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.

ok, i think this is correct. I'm bounds checking copy in and copy out of the keys / ioctl buffers; i'm handling 0 byte empty keys properly again so ifconfig and such doesn't error out. I've tested it with CCMP, TKIP and WEP (and I'm sure if CCMP works then GCMP will work, but I'll try to validate that soon.)

Sun, Aug 16, 3:43 AM · wireless
adrian updated the diff for D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.

change to the new key copy API that returns true/false, not key copy length.

Sun, Aug 16, 12:30 AM · wireless
adrian updated the diff for D58705: net80211: add key get/set methods.

fix; 0 size keys returning 0 == false which leads to APIs returning EINVAL

Sun, Aug 16, 12:30 AM · wireless

Sat, Aug 15

adrian added a comment to D58854: net80211: fix WEP transmit.

also it would be nice to count/log the drops here...

Sat, Aug 15, 4:28 AM · wireless
adrian added a reviewer for D58854: net80211: fix WEP transmit: bz.
Sat, Aug 15, 2:44 AM · wireless
adrian added a comment to D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.

This currently throws errors in ifconfig if there's no key (as the key length is 0) - which means it'll error out unless four WEP keys are configured.
I'll need to go and handle the "no key configured, return a blank no key" case before this lands.

Sat, Aug 15, 2:43 AM · wireless

Sun, Aug 9

adrian updated the diff for D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.

another bounds check fix

Sun, Aug 9, 2:40 AM · wireless
adrian added a comment to D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.

@bz ok this should implement the behaviours you wanted - bounds checking, buffer zero'ing, etc. Please let me know.

Sun, Aug 9, 2:13 AM · wireless
adrian added a comment to D58705: net80211: add key get/set methods.

@bz ok this should implement the behaviours you wanted - bounds checking, buffer zero'ing, etc. Please let me know.

Sun, Aug 9, 2:12 AM · wireless
adrian updated the diff for D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.

update to use the copy out routines

Sun, Aug 9, 1:48 AM · wireless
adrian updated the diff for D58705: net80211: add key get/set methods.

update

Sun, Aug 9, 1:47 AM · wireless

Fri, Aug 7

adrian added reviewers for D58705: net80211: add key get/set methods: wireless, bz.
Fri, Aug 7, 6:53 PM · wireless

Tue, Aug 4

adrian updated the diff for D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.

update the wep side size check, bz@

Tue, Aug 4, 8:02 PM · wireless
adrian added inline comments to D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.
Tue, Aug 4, 7:47 PM · wireless

Mon, Aug 3

adrian updated the diff for D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.

another update

Mon, Aug 3, 2:36 AM · wireless
adrian updated the diff for D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.

oops, missed these

Mon, Aug 3, 2:26 AM · wireless
adrian updated the diff for D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.

Feedback from bz@

Mon, Aug 3, 2:12 AM · wireless

Wed, Jul 22

bz requested changes to D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API.
Wed, Jul 22, 7:54 AM · wireless
bz added a comment to D26018: Methodize the TX power limit retrival in ieee80211_ioctl_get80211().

Making this an inline function for the point of making it a function seems hard to justify for single use code.
Can we at least keep it as a normal function in ioctl.c?

Wed, Jul 22, 7:24 AM · wireless
adrian accepted D26018: Methodize the TX power limit retrival in ieee80211_ioctl_get80211().
Wed, Jul 22, 3:43 AM · wireless

Tue, Jul 21

adrian abandoned D45397: net80211: Add crypto module support for AES-GCMP 128 and 256 bit..

Landed via another review (https://reviews.freebsd.org/D49161)

Tue, Jul 21, 8:01 PM · wireless
adrian abandoned D49419: net80211: bump crypto keysize to 384 bits.

I've been working in this in another stack (https://reviews.freebsd.org/D58384 as an example) to do a lot of needed API cleanup before we can bump this without breaking the current ioctls.

Tue, Jul 21, 8:00 PM · wireless
adrian added a reviewer for D58384: net80211: migrate the ioctl API to a 128 bit specific API + use key API: wireless.
Tue, Jul 21, 7:59 PM · wireless
adrian added a comment to D26018: Methodize the TX power limit retrival in ieee80211_ioctl_get80211().

oh damn i missed this, I think it's worth refactoring it so we do have a specific place to pull the TX power from.

Tue, Jul 21, 7:50 PM · wireless

Mon, Jul 20

adrian closed D58098: net80211: update drivers to allocate sequence numbers in the raw path.
Mon, Jul 20, 10:50 PM · wireless

Jul 8 2026

adrian added a reviewer for D58098: net80211: update drivers to allocate sequence numbers in the raw path: wireless.
Jul 8 2026, 5:55 AM · wireless

Jul 7 2026

me_runxiyu.org added a comment to D58020: net80211: don't do_ht in sta_recv_mgmt without htcap/htinfo.

Since it is also part of the VHT code path we can't just /not/ do it here; I think we need to handle NULL IE pointers in ieee80211_ht_updateparams_final() and just not do the htinfo deferefence there. (And document that the function must handle NULL IEs.)
Would you like to try that instead?

Jul 7 2026, 1:03 PM · wireless
me_runxiyu.org added a comment to D58020: net80211: don't do_ht in sta_recv_mgmt without htcap/htinfo.

@adrian It's a (pretty terrible) AP from Huawei

Jul 7 2026, 1:02 PM · wireless

Jul 3 2026

bz added a comment to D58020: net80211: don't do_ht in sta_recv_mgmt without htcap/htinfo.

ugh ok why's do_ht being set when there's no htcap/htinfo fields.

OH, hilarious, it's because you have VHT parameters but not HT parameters? That's problematic. Would you mind doing an "ifconfig -v wlan0 list scan" to capture what's being seen in the scan, find the entry that has VHT parameters and not HT parameters, and including it in here?

Jul 3 2026, 8:32 PM · wireless
adrian added a comment to D58020: net80211: don't do_ht in sta_recv_mgmt without htcap/htinfo.

ugh ok why's do_ht being set when there's no htcap/htinfo fields.

Jul 3 2026, 7:08 PM · wireless
adrian added reviewers for D58020: net80211: don't do_ht in sta_recv_mgmt without htcap/htinfo: wireless, bz.
Jul 3 2026, 3:14 PM · wireless

Jul 1 2026

adrian closed D57799: net80211: fix CCMP/GCMP AAD for MFP frames.
Jul 1 2026, 12:21 AM · wireless

Jun 29 2026

nagymas_gmail.com added a comment to D57762: Reporting/debug path changed to display VHT80 and VHT160.

For now I'd like to stay close to the original implementation and only extend the diagnostic where necessary.

Jun 29 2026, 2:21 AM · wireless

Jun 28 2026

nagymas_gmail.com added a comment to D57762: Reporting/debug path changed to display VHT80 and VHT160.
Jun 28 2026, 11:49 AM · wireless
nagymas_gmail.com added a comment to D57762: Reporting/debug path changed to display VHT80 and VHT160.
Jun 28 2026, 2:01 AM · wireless
nagymas_gmail.com added a comment to D57762: Reporting/debug path changed to display VHT80 and VHT160.
Jun 28 2026, 1:18 AM · wireless
bz added a comment to D57762: Reporting/debug path changed to display VHT80 and VHT160.

I personally I would go with the simpler solution calling IEEE80211_IS_CHAN_VHTxxx macros already combines mode and width.

static const char *
net80211_get_chanmode_descr(const struct ieee80211_channel *c)
{

...
<VHT*>

Jun 28 2026, 12:48 AM · wireless
nagymas_gmail.com added a comment to D57762: Reporting/debug path changed to display VHT80 and VHT160.

I personally I would go with the simpler solution calling IEEE80211_IS_CHAN_VHTxxx macros already combines mode and width.

Jun 28 2026, 12:41 AM · wireless
nagymas_gmail.com added a comment to D57762: Reporting/debug path changed to display VHT80 and VHT160.

I think we should just create a function to return a static channel description for this. something like

/*
 * Return a string like <MODE><WIDTH> - eg HT20, VHT80+80, etc.
 */
static const char * net80211_get_chanmode_descr(const struct ieee80211_channel *c)
{
  // do all the HT/VHT stuff currently done in the above log code
 // default
  return "<undef>";
}

What do you think?

Jun 28 2026, 12:35 AM · wireless

Jun 27 2026

adrian added a comment to D57762: Reporting/debug path changed to display VHT80 and VHT160.

I think we should just create a function to return a static channel description for this. something like

Jun 27 2026, 6:17 PM · wireless

Jun 24 2026

adrian added a reviewer for D57796: net80211: add IEEE80211_KEY_MFP; set for MFP unicast keys: wireless.
Jun 24 2026, 4:25 AM · wireless
adrian added a reviewer for D57798: net80211: encrypt/decrypt MFP CCMP frames: wireless.
Jun 24 2026, 4:25 AM · wireless
adrian added a reviewer for D57799: net80211: fix CCMP/GCMP AAD for MFP frames: wireless.
Jun 24 2026, 4:25 AM · wireless
nagymas_gmail.com updated the diff for D57762: Reporting/debug path changed to display VHT80 and VHT160.

Reverted to the original branching to keep the original structure. %s%d changed to %s%s to handle 80P80

Jun 24 2026, 2:48 AM · wireless
nagymas_gmail.com updated the diff for D57762: Reporting/debug path changed to display VHT80 and VHT160.

Test HT20, HT40, VHT20, VHT40, VHT80, VHT160 not tested VHT80P80

Jun 24 2026, 1:55 AM · wireless
nagymas_gmail.com updated the diff for D57762: Reporting/debug path changed to display VHT80 and VHT160.

Debug string update to be able to display VHT40U and VHT40D

Jun 24 2026, 12:32 AM · wireless

Jun 23 2026

nagymas_gmail.com added a comment to D57762: Reporting/debug path changed to display VHT80 and VHT160.

Original reporting:
VHT80
VHT160
VHT (covers VHT20/VHT40)
Updated reporting:
VHT20
VHT40U
VHT40D
VHT80
VHT160
VHT80P80
Reason:
ni->ni_chan->ic_flags already contains the full channel-width information, so the patch makes the debug output reflect the actual negotiated channel state.

Jun 23 2026, 10:30 PM · wireless
nagymas_gmail.com updated the diff for D57762: Reporting/debug path changed to display VHT80 and VHT160.

Added every configuration currently available for more accurate debuging

Jun 23 2026, 10:21 PM · wireless
nagymas_gmail.com accepted D57762: Reporting/debug path changed to display VHT80 and VHT160.

Agreed but we could detail VHT40U and D and VHT20 too

Jun 23 2026, 10:18 PM · wireless
bz requested changes to D57762: Reporting/debug path changed to display VHT80 and VHT160.

If we do it then let us do better than AI and also document 80P80.

Jun 23 2026, 1:30 PM · wireless