<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/net80211, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>net80211: radiotap: add more VHT flags, and struct</title>
<updated>2026-04-18T01:12:12+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2026-04-14T15:21:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=125b09de09ec5ca1939de0207090513453b5908e'/>
<id>125b09de09ec5ca1939de0207090513453b5908e</id>
<content type='text'>
Add the struct for VHT information and flags for the known and flag
field as documented on radiotap.org.  iwlwifi has started filling in
these details.

While here, add Copyright information for all the additions in the
last years.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the struct for VHT information and flags for the known and flag
field as documented on radiotap.org.  iwlwifi has started filling in
these details.

While here, add Copyright information for all the additions in the
last years.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>net80211: fix VHT160/80P80/80 chanwidth selection in the "40-" case</title>
<updated>2026-03-08T13:50:02+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2026-03-08T00:57:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6cfd2b93e68061c7831016b91c2e308d01658764'/>
<id>6cfd2b93e68061c7831016b91c2e308d01658764</id>
<content type='text'>
Depending on the base channel ni_vht_chan2 - ni_vht_chan1 can be
negative.  Apply abs() as indicated in the comments right above
	| CCFS1 - CCFS0 | = 8  or &gt; 16
in order to fix the channel width selection.

Sponsored by:	The FreeBSD Foundation
PR:		293645
Fixes:		4bf049bfeefd9
MFC after:	3 days
Reviewed by:	adrian
Differential Revision: https://reviews.freebsd.org/D55717
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Depending on the base channel ni_vht_chan2 - ni_vht_chan1 can be
negative.  Apply abs() as indicated in the comments right above
	| CCFS1 - CCFS0 | = 8  or &gt; 16
in order to fix the channel width selection.

Sponsored by:	The FreeBSD Foundation
PR:		293645
Fixes:		4bf049bfeefd9
MFC after:	3 days
Reviewed by:	adrian
Differential Revision: https://reviews.freebsd.org/D55717
</pre>
</div>
</content>
</entry>
<entry>
<title>net80211: sta: use IEEE80211_STATUS_SUCCESS instead of magic 0</title>
<updated>2026-03-05T13:44:00+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2026-03-02T10:33:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9b03cc2a70e4b6354c5f5b90e4c51b850b6b1dd2'/>
<id>9b03cc2a70e4b6354c5f5b90e4c51b850b6b1dd2</id>
<content type='text'>
Rather than using the status != 0 check use the way more descriptive
status != IEEE80211_STATUS_SUCCESS definition.  This makes it a lot
more clear what is checked here.  While here add a comment in case
aof the (Re)Assoc Resp failure as we do not update state in that case
but rely on a timeout which will bounce us back to State 1
(cf. 802.11-2024, Figure 11-23) which means SCAN in our case, rather
than possibly moving us back to AUTH.  We will likely have to revisit
this when SAE hits the tree.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	adrian
Differential Revision: https://reviews.freebsd.org/D55643
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rather than using the status != 0 check use the way more descriptive
status != IEEE80211_STATUS_SUCCESS definition.  This makes it a lot
more clear what is checked here.  While here add a comment in case
aof the (Re)Assoc Resp failure as we do not update state in that case
but rely on a timeout which will bounce us back to State 1
(cf. 802.11-2024, Figure 11-23) which means SCAN in our case, rather
than possibly moving us back to AUTH.  We will likely have to revisit
this when SAE hits the tree.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	adrian
Differential Revision: https://reviews.freebsd.org/D55643
</pre>
</div>
</content>
</entry>
<entry>
<title>net80211: clean up time comparison in HT code</title>
<updated>2026-02-11T06:02:49+00:00</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2025-12-15T03:45:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7a5288a023baeac2f0c3128506178f89fda3cc0d'/>
<id>7a5288a023baeac2f0c3128506178f89fda3cc0d</id>
<content type='text'>
There's at least one place where the time comparison is wrong, leading
to some bad beahaviour around deciding to try and establish/reestablish
AMPDU TX sessions.

Start addressing these!

Differential Revision:	https://reviews.freebsd.org/D54390
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There's at least one place where the time comparison is wrong, leading
to some bad beahaviour around deciding to try and establish/reestablish
AMPDU TX sessions.

Start addressing these!

Differential Revision:	https://reviews.freebsd.org/D54390
</pre>
</div>
</content>
</entry>
<entry>
<title>net80211: in net80211_vap_printf() also use vprintf()</title>
<updated>2026-02-09T21:40:47+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2026-01-20T13:43:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=840f478eed2ab18abd1088aa12587bb708a46b56'/>
<id>840f478eed2ab18abd1088aa12587bb708a46b56</id>
<content type='text'>
While everything else uses vprintf() and net80211_vap_printf()
vlog() the debug output of wlandebug sessions can be weird.
For consistency use vprintf() everywhere to have homogeneous logging.

Sponosred by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	adrian
Differential Revision: https://reviews.freebsd.org/D54795
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While everything else uses vprintf() and net80211_vap_printf()
vlog() the debug output of wlandebug sessions can be weird.
For consistency use vprintf() everywhere to have homogeneous logging.

Sponosred by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	adrian
Differential Revision: https://reviews.freebsd.org/D54795
</pre>
</div>
</content>
</entry>
<entry>
<title>radiotap: add more EHT definitions</title>
<updated>2026-01-21T18:31:07+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2026-01-20T18:57:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5f7b5dde10518d4436e1ec07a76873bf31d28425'/>
<id>5f7b5dde10518d4436e1ec07a76873bf31d28425</id>
<content type='text'>
Add more EHT definitions used by at least iwlwifi.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add more EHT definitions used by at least iwlwifi.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>net80211: correct return code for ieee80211_ampdu_request()</title>
<updated>2026-01-20T15:45:58+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2026-01-20T13:48:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c670af3725d0bb5494caf0846994ae6997175cb6'/>
<id>c670af3725d0bb5494caf0846994ae6997175cb6</id>
<content type='text'>
We used to return the result of (*ic_send_action) directly but
ieee80211_ampdu_request() returns 1 on success and 0 on error,
which is contrary to the result of (*ic_send_action).  Deal with
that accordingly and update the documentation of the function.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	emaste
Differential Revision: https://reviews.freebsd.org/D54794
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We used to return the result of (*ic_send_action) directly but
ieee80211_ampdu_request() returns 1 on success and 0 on error,
which is contrary to the result of (*ic_send_action).  Deal with
that accordingly and update the documentation of the function.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	emaste
Differential Revision: https://reviews.freebsd.org/D54794
</pre>
</div>
</content>
</entry>
<entry>
<title>net80211: fix arguments to IEEE80211_NOTE in ieee80211_fix_rate</title>
<updated>2026-01-14T18:51:11+00:00</updated>
<author>
<name>Yichen Chai</name>
<email>yichen.chai@gmail.com</email>
</author>
<published>2026-01-14T18:44:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=75556c7e999e9095ce71558ae61f49c1ba61a192'/>
<id>75556c7e999e9095ce71558ae61f49c1ba61a192</id>
<content type='text'>
Fix the arguments to the debug statement.

(slightly adjusted from the original submission by bz)

PR:		286448
MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the arguments to the debug statement.

(slightly adjusted from the original submission by bz)

PR:		286448
MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>net80211: fix bpf tap leak on wlan(4) detach</title>
<updated>2026-01-10T18:56:19+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2026-01-10T18:56:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=509a185dd9405141df4d304d7805019b40e736cf'/>
<id>509a185dd9405141df4d304d7805019b40e736cf</id>
<content type='text'>
PR:	292337
Fixes:	8774a990ee4094f16d596d4b78e0f3239e5d0c88
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:	292337
Fixes:	8774a990ee4094f16d596d4b78e0f3239e5d0c88
</pre>
</div>
</content>
</entry>
<entry>
<title>bpf: modularize ifnet(9) part of bpf</title>
<updated>2025-12-15T20:50:35+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2025-12-15T20:50:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8774a990ee4094f16d596d4b78e0f3239e5d0c88'/>
<id>8774a990ee4094f16d596d4b78e0f3239e5d0c88</id>
<content type='text'>
Imagine that bpf(9) tapping can happen at any point in the network stack,
not necessarily at interface transmit or receive.  To achieve that we need
a thin layer of abstraction defined by struct bif_methods, that defines
how generic bpf layer works with a tap point of this kind.

Implement ifnet(9) specific methods in a separate file bpf_ifnet.c.  At
this point there is 100% compatibility for all existing interfaces, there
is no KPI change, yet.  The legacy attaching KPI is layered over new ifnet
agnostic KPI.  The new KPI may change though, as we can implement multiple
DLTs per single tap point in a prettier fashion.

The new abstraction layer allows us to move all the 802.11 radio injection
hacks out of bpf.c into ieee80211_radiotap.c, so do that immediately as a
good proof of concept.

Reviewed by:		bz
Differential Revision:	https://reviews.freebsd.org/D53872
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Imagine that bpf(9) tapping can happen at any point in the network stack,
not necessarily at interface transmit or receive.  To achieve that we need
a thin layer of abstraction defined by struct bif_methods, that defines
how generic bpf layer works with a tap point of this kind.

Implement ifnet(9) specific methods in a separate file bpf_ifnet.c.  At
this point there is 100% compatibility for all existing interfaces, there
is no KPI change, yet.  The legacy attaching KPI is layered over new ifnet
agnostic KPI.  The new KPI may change though, as we can implement multiple
DLTs per single tap point in a prettier fashion.

The new abstraction layer allows us to move all the 802.11 radio injection
hacks out of bpf.c into ieee80211_radiotap.c, so do that immediately as a
good proof of concept.

Reviewed by:		bz
Differential Revision:	https://reviews.freebsd.org/D53872
</pre>
</div>
</content>
</entry>
</feed>
