sysprog21 / vwifi

A virtual wireless device driver for Linux
MIT License
205 stars 39 forks source link

Align with recent cfg80211 header #61

Closed jychen0611 closed 5 months ago

jychen0611 commented 6 months ago

1. The scan_width field is no longer present in the cfg80211_inform_bss structure.

_commit 5add321 wifi: cfg80211: remove scanwidth support kernel version : v6.9-rc6 ~ v6.7-rc1 date : Sep 13, 2023

There really isn't any support for scanning at different channel widths than 20 MHz since there's no way to set it. Remove this support for now, if somebody wants to maintain this whole thing later we can revisit how it should work.

- bss_data.scan_width = NL80211_BSS_CHAN_WIDTH_20;

2. The parameters in the change_beacon function have been updated to cfg80211_ap_update.

_commit bb55441 wifi: cfg80211: split struct cfg80211_apsettings kernel version : v6.9-rc6 ~ v6.7-rc1 date : Sep 25, 2023

Using the full struct cfg80211_ap_settings for an update is misleading, since most settings cannot be updated. Split the update case off into a new struct cfg80211_ap_update.


/**
* struct cfg80211_ap_update - AP configuration update
*
* Subset of &struct cfg80211_ap_settings, for updating a running AP.
*
* @beacon: beacon data
* @fils_discovery: FILS discovery transmission parameters
* @unsol_bcast_probe_resp: Unsolicited broadcast probe response parameters
*/

+struct cfg80211_ap_update {

Modify the prototype for change_beacon() in struct cfg80211_op to accept cfg80211_ap_settings instead of cfg80211_beacon_data so that it can process data in addition to beacons. Modify the prototypes of ieee80211_change_beacon() and driver specific functions accordingly.

int (*change_beacon)(struct wiphy *wiphy, struct net_device *dev,
-                struct cfg80211_beacon_data *info);
+                struct cfg80211_ap_settings *info);

Simply put, the change_beacon function now includes two additional parameters, fils_discovery and unsol_bcast_probe_resp, which are part of the cfg80211_ap_update structure.

_filsdiscovery : FILS discovery transmission parameters _unsol_bcast_proberesp : Unsolicited broadcast probe response parameters

jserv commented 5 months ago

Close via commit 35ca058e767d87a7c809091ae910b2bf02687870