History log of /src/sys/compat/linuxkpi/common/include/linux/nl80211.h (Results 1 – 25 of 54)
Revision Date Author Comments
# 05674847 11-Oct-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: additions for Linux v6.17 based wireless drivers

This includes some type cleanups as well as some shuffling of structs
and functions to sort dependencies out. Few new functions an

LinuxKPI: 802.11: additions for Linux v6.17 based wireless drivers

This includes some type cleanups as well as some shuffling of structs
and functions to sort dependencies out. Few new functions and defines
as well as new struct members. Minor fixes to style and debug logging.

This is the majority of changes. None of these should conflict with
current in-tree drivers. The final bit of changes will come along with
the driver updates adding an extra argument to function pointers.

MFC after: 3 days

show more ...


# a2390872 16-Apr-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: fix TKIP RX/TX MIC offsets

TKIP has a special key buffer. While keylen only identifies the
key length, the two MIC are appended. The LinuxKPI offsets for
these were unfortunately

LinuxKPI: 802.11: fix TKIP RX/TX MIC offsets

TKIP has a special key buffer. While keylen only identifies the
key length, the two MIC are appended. The LinuxKPI offsets for
these were unfortunately never set correct which lead to constant
Micheal counter measures as the MIC never was correct when calculations
were offloaded to firmware. This is the first half of the fix.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# 11450726 30-Dec-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: improve cfg80211_chandef_create()

Implement cfg80211_chandef_create() to work with HT. Update enum
with HT channel types. When calling the function from LinuxKPI 802.11
code, pas

LinuxKPI: 802.11: improve cfg80211_chandef_create()

Implement cfg80211_chandef_create() to work with HT. Update enum
with HT channel types. When calling the function from LinuxKPI 802.11
code, pass in NL80211_CHAN_HT20 if HT is supported rather than NO_HT.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# 40839418 30-Dec-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: dump station_info using (*sta_statistics)() as sysctl

Implement the mac80211 (*sta_statistics) to obtain station statistics.
Fix up struct station_info for that.
Add supporting fun

LinuxKPI: 802.11: dump station_info using (*sta_statistics)() as sysctl

Implement the mac80211 (*sta_statistics) to obtain station statistics.
Fix up struct station_info for that.
Add supporting funtions to decode station_info and rate_info_bw fields
to make the output more usable to human beings.

Add a per-VIF (VAP) sysctl to export that information. This is mostly
used for now to see what the driver/fw thinks about its TX rate.
We should later gather this information in different ways and pass it
to net80211 to export it to user space so we can finally have nice
station information (also for the non-AP side).

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# 470aaf42 26-Jan-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: make struct ieee80211_tx_info a bit more packed

Given I was looking at the struct make it more packed at the beginning
at least. In fact it did not shrink but the tx_time_est got

LinuxKPI: 802.11: make struct ieee80211_tx_info a bit more packed

Given I was looking at the struct make it more packed at the beginning
at least. In fact it did not shrink but the tx_time_est got expanded.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# ac1d519c 28-Oct-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: adjustments for v6.11 iwlwifi, rtw88 and rtw89

Bring ing the LinuxKPI 802.11 compat bits which are not altering
the mac80211 ops KPI.

* Add various functions for drvier updates.
*

LinuxKPI: 802.11: adjustments for v6.11 iwlwifi, rtw88 and rtw89

Bring ing the LinuxKPI 802.11 compat bits which are not altering
the mac80211 ops KPI.

* Add various functions for drvier updates.
* Add functions (some compat code to I assume cleanup some
mac80211 ops) emulating chanctx changes doing (*config) updates.
* Adjust structs and defines.
* Deal with an enum growing more than 32 bits in printf.
* Add a mtx to struct wiphy which is exposed to the drivers.
Handle initialization and destruction for now.
* Implementation of wiphy_work and wiphy_delayed_work.
* Set was_assoc for deassoc/deauth in prep_tx_info.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# c1c98958 12-Sep-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: add futher defines to ieee80211.h and nl80211.h

Upstream new defines, enum values, etc. for coming driver updates which
are non-conflicting with the current state.

The only notabl

LinuxKPI: 802.11: add futher defines to ieee80211.h and nl80211.h

Upstream new defines, enum values, etc. for coming driver updates which
are non-conflicting with the current state.

The only notable change is the rename of the enum ieee80211_ap_reg_power
but the enum name had not been used so far by any driver in the tree
(only in mac80211.h) but an updated version of ath11k does use it so we
need to correct our initial naming.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# adff403f 16-May-2023 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: update compat code for updated drivers

Adjust and add structs, fields, functions to make more modern versions
of LinuxKPI based wireless drivers (based on wireless-testing (
wt-202

LinuxKPI: 802.11: update compat code for updated drivers

Adjust and add structs, fields, functions to make more modern versions
of LinuxKPI based wireless drivers (based on wireless-testing (
wt-2023-06-09, wt-2023-07-24, and later)) compile.

Some of these changes can only be applied once all drivers get
updated to not break the old versions currently in the tree.
Mark those changes with __FOR_LATER_DRV_UPDATE for now and flip the
switch at a later point.

Sponsored by: The FreeBSD Foundation
MFC after: 20 days

show more ...


# 95ee2897 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# 69cc1630 28-Nov-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: minor header updates

- add comments for enum values constantly looked up, and another one to
a net80211 equivalent (should possibly re-define those in the future?)
- add another

LinuxKPI: 802.11: minor header updates

- add comments for enum values constantly looked up, and another one to
a net80211 equivalent (should possibly re-define those in the future?)
- add another nl80211_sta_info flag
- add enum environment_cap used in cfg80211.h in the future.

MFC after: 3 days

show more ...


# 1d70218e 31-Oct-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11 update header files

Adjust struct members, add more (for HE dummy) defines, add more
(wrapper) functions in order to acoomodate another driver.

MFC after: 3 days


# f02e2115 21-Sep-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: add more header compat bits

First part adding more bits in order to synch up drivers to the same
level and enable a new ones.

MFC after: 3 days


# 800aa9cd 09-Sep-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 80211 (+net80211): update and cleanup headers

Fix types for various struct fields (initially added as int).

Move structs and inline functions logically together, e.g., for wowlan.
Add mor

LinuxKPI: 80211 (+net80211): update and cleanup headers

Fix types for various struct fields (initially added as int).

Move structs and inline functions logically together, e.g., for wowlan.
Add more skeleton functions and #defines needed for iwlwifi d3.c
in the future.

Add struct ieee80211_vht_cap (without "_ie") to net80211 and remove
duplicate definitions in LinuxKPI headers now using net80211 structs.
For now leave ieee80211_ie_vhtcap in net80211. I am not sure yet if we
actually need it as such. That'll be cleaned up with more VHT updates
in net80211 in the future.

No functional changes in currently compiled code intended.

Try to implement ieee80211_action_contains_tpc() as I ran into it with
an older iwlwifi chipset. This depends on c994352a8841eb453.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

show more ...


# b0f73768 29-Jul-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11 header updates

While working on new and updates to drivers more structs, fields,
functions, .. were found, had to be shuffled around, ..
Some of these are (so far still dummy) funct

LinuxKPI: 802.11 header updates

While working on new and updates to drivers more structs, fields,
functions, .. were found, had to be shuffled around, ..
Some of these are (so far still dummy) functions or not properly
typed fields. The IEEE80211_HE_ constants are all still dummy.
This was msotly as a start to make new (out-of-tree) things compile.

Sponsored by: The FreeBSD Foundation (minor VHT/chan width bits)
MFC after: 1 week

show more ...


# d875aa15 22-Feb-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: update 802.11 headers

Add new defines, struct members, and (stub) functions needed for an
updated iwlwifi. Most of the defines are for rfkill or HE.

Sponsored by: The FreeBSD Foundation

LinuxKPI: update 802.11 headers

Add new defines, struct members, and (stub) functions needed for an
updated iwlwifi. Most of the defines are for rfkill or HE.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# 2e183d99 15-Feb-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11 header updates and add/adjust source dependencies.

This update is for more/newer versions of drivers:
- add and properly place more structs, enums, defines needed by drivers.
- corr

LinuxKPI: 802.11 header updates and add/adjust source dependencies.

This update is for more/newer versions of drivers:
- add and properly place more structs, enums, defines needed by drivers.
- correct types of struct fields.
- make various function arguments const.
- move REG_RULE() macro to its own file regulatory.h and
use macros for calculations.
- add linuxkpi_ieee80211_get_channel() implementation.
- change linuxkpi_ieee80211_ifattach() to return int for error checking.

No intended functional changes for iwlwifi.

Sponsored by: The FreeBSD Foundation (partially)
MFC after: 3 days

show more ...


# 51b461b3 09-Jan-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11 update compat code for driver updates

Add more (dummy in case of HE) defines, structs, functions and another
mac80211 function pointer needed to update and support recent drivers.

LinuxKPI: 802.11 update compat code for driver updates

Add more (dummy in case of HE) defines, structs, functions and another
mac80211 function pointer needed to update and support recent drivers.

MFC after: 3 days

show more ...


# 6b4cac81 26-Dec-2021 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: add 802.11 compat code

Add 802.11 compat code for mac80211 and to a minimal degree cfg80211.
This allows us to compile and use basic functionality of wireless
drivers such as iwlwifi.

Thi

LinuxKPI: add 802.11 compat code

Add 802.11 compat code for mac80211 and to a minimal degree cfg80211.
This allows us to compile and use basic functionality of wireless
drivers such as iwlwifi.

This is a constant work in progress but having it in the tree will
allow others to test and more easy to track changes and avoid having
snapshots no longer applying to branches.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# 05674847 11-Oct-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: additions for Linux v6.17 based wireless drivers

This includes some type cleanups as well as some shuffling of structs
and functions to sort dependencies out. Few new functions an

LinuxKPI: 802.11: additions for Linux v6.17 based wireless drivers

This includes some type cleanups as well as some shuffling of structs
and functions to sort dependencies out. Few new functions and defines
as well as new struct members. Minor fixes to style and debug logging.

This is the majority of changes. None of these should conflict with
current in-tree drivers. The final bit of changes will come along with
the driver updates adding an extra argument to function pointers.

MFC after: 3 days

show more ...


# a2390872 16-Apr-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: fix TKIP RX/TX MIC offsets

TKIP has a special key buffer. While keylen only identifies the
key length, the two MIC are appended. The LinuxKPI offsets for
these were unfortunately

LinuxKPI: 802.11: fix TKIP RX/TX MIC offsets

TKIP has a special key buffer. While keylen only identifies the
key length, the two MIC are appended. The LinuxKPI offsets for
these were unfortunately never set correct which lead to constant
Micheal counter measures as the MIC never was correct when calculations
were offloaded to firmware. This is the first half of the fix.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# 11450726 30-Dec-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: improve cfg80211_chandef_create()

Implement cfg80211_chandef_create() to work with HT. Update enum
with HT channel types. When calling the function from LinuxKPI 802.11
code, pas

LinuxKPI: 802.11: improve cfg80211_chandef_create()

Implement cfg80211_chandef_create() to work with HT. Update enum
with HT channel types. When calling the function from LinuxKPI 802.11
code, pass in NL80211_CHAN_HT20 if HT is supported rather than NO_HT.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# 40839418 30-Dec-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: dump station_info using (*sta_statistics)() as sysctl

Implement the mac80211 (*sta_statistics) to obtain station statistics.
Fix up struct station_info for that.
Add supporting fun

LinuxKPI: 802.11: dump station_info using (*sta_statistics)() as sysctl

Implement the mac80211 (*sta_statistics) to obtain station statistics.
Fix up struct station_info for that.
Add supporting funtions to decode station_info and rate_info_bw fields
to make the output more usable to human beings.

Add a per-VIF (VAP) sysctl to export that information. This is mostly
used for now to see what the driver/fw thinks about its TX rate.
We should later gather this information in different ways and pass it
to net80211 to export it to user space so we can finally have nice
station information (also for the non-AP side).

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# 470aaf42 26-Jan-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: make struct ieee80211_tx_info a bit more packed

Given I was looking at the struct make it more packed at the beginning
at least. In fact it did not shrink but the tx_time_est got

LinuxKPI: 802.11: make struct ieee80211_tx_info a bit more packed

Given I was looking at the struct make it more packed at the beginning
at least. In fact it did not shrink but the tx_time_est got expanded.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# ac1d519c 28-Oct-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: adjustments for v6.11 iwlwifi, rtw88 and rtw89

Bring ing the LinuxKPI 802.11 compat bits which are not altering
the mac80211 ops KPI.

* Add various functions for drvier updates.
*

LinuxKPI: 802.11: adjustments for v6.11 iwlwifi, rtw88 and rtw89

Bring ing the LinuxKPI 802.11 compat bits which are not altering
the mac80211 ops KPI.

* Add various functions for drvier updates.
* Add functions (some compat code to I assume cleanup some
mac80211 ops) emulating chanctx changes doing (*config) updates.
* Adjust structs and defines.
* Deal with an enum growing more than 32 bits in printf.
* Add a mtx to struct wiphy which is exposed to the drivers.
Handle initialization and destruction for now.
* Implementation of wiphy_work and wiphy_delayed_work.
* Set was_assoc for deassoc/deauth in prep_tx_info.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# c1c98958 12-Sep-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: 802.11: add futher defines to ieee80211.h and nl80211.h

Upstream new defines, enum values, etc. for coming driver updates which
are non-conflicting with the current state.

The only notabl

LinuxKPI: 802.11: add futher defines to ieee80211.h and nl80211.h

Upstream new defines, enum values, etc. for coming driver updates which
are non-conflicting with the current state.

The only notable change is the rename of the enum ieee80211_ap_reg_power
but the enum name had not been used so far by any driver in the tree
(only in mac80211.h) but an updated version of ath11k does use it so we
need to correct our initial naming.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


123