Commit Graph

357 Commits

Author SHA1 Message Date
Jose Ignacio Tornos Martinez aedba9050d wifi: mac80211: Fix common size calculation for ML element
JIRA: https://issues.redhat.com/browse/RHEL-79791

commit 19aa842dcbb5860509b7e1b7745dbae0b791f6c4
Author: Ilan Peer <ilan.peer@intel.com>
Date:   Thu Jan 2 16:20:00 2025 +0200

    wifi: mac80211: Fix common size calculation for ML element
    
    When the ML type is EPCS the control bitmap is reserved, the length
    is always 7 and is captured by the 1st octet after the control.
    
    Fixes: 0f48b8b88aa9 ("wifi: ieee80211: add definitions for multi-link element")
    Signed-off-by: Ilan Peer <ilan.peer@intel.com>
    Reviewed-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://patch.msgid.link/20250102161730.5790376754a7.I381208cbb72b1be2a88239509294099e9337e254@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2025-04-16 17:18:56 +02:00
Jose Ignacio Tornos Martinez 156d4ce90c wifi: mac80211: Support dynamic link addition and removal
JIRA: https://issues.redhat.com/browse/RHEL-79791

commit 36e05b0b83903e2d85b3675d10ac8b5eced54377
Author: Ilan Peer <ilan.peer@intel.com>
Date:   Thu Jan 2 16:19:58 2025 +0200

    wifi: mac80211: Support dynamic link addition and removal
    
    Add support for adding and removing station links:
    
    - Adding links is done asynchronously, i.e., first
      an ML reconfiguration action frame is sent to the AP
      requesting to add links, and only when the AP replies,
      links which were added successfully by the AP are added
      locally.
    - Removing links is done synchronously, i.e., the links
      are removed before sending the ML reconfiguration
      action frame to the AP (to avoid using this links after
      the AP MLD removed them but before the station got the
      ML reconfiguration response). In case the AP replies with a
      status indicating that a link removal was not successful,
      disconnect (as this should not happen an is an indication
      that something might be wrong on the AP MLD).
    
    Signed-off-by: Ilan Peer <ilan.peer@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://patch.msgid.link/20250102161730.ec0492a8dd21.I2869686642bbc0f86c40f284ebf7e6f644b551ab@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2025-04-16 17:18:56 +02:00
Jose Ignacio Tornos Martinez 87b1a39fda wifi: ieee80211: Add some missing MLO related definitions
JIRA: https://issues.redhat.com/browse/RHEL-79791

commit fa2a71a3b9ed1a333f1bed30ffe758cc150a399a
Author: Ilan Peer <ilan.peer@intel.com>
Date:   Thu Jan 2 16:19:53 2025 +0200

    wifi: ieee80211: Add some missing MLO related definitions
    
    As a preparation to support ML reconfiguration request and
    response, add additional ML reconfiguration definitions
    required to support the flow. See Section 9.4.2.321.4 in
    Draft P802.11be_D6.0.
    
    Signed-off-by: Ilan Peer <ilan.peer@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://patch.msgid.link/20250102161730.4970ca10ebfd.Ibe7f6108cd0e04b8c739a8e35a4f485f664a17e6@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2025-04-16 17:18:56 +02:00
Jose Ignacio Tornos Martinez 20cc62bd87 wifi: mac80211: skip all known membership selectors
JIRA: https://issues.redhat.com/browse/RHEL-79791

commit 98934687f8a871ea2bf90be6590daddd1a130cdd
Author: Benjamin Berg <benjamin.berg@intel.com>
Date:   Wed Jan 1 07:05:33 2025 +0200

    wifi: mac80211: skip all known membership selectors
    
    The GLK and EPD Selectors are also not rates, so add a new macro for the
    minimum value of a selector and test against that instead of the entire
    list. Also fix the typo in the EPD selector define.
    
    Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
    Reviewed-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://patch.msgid.link/20250101070249.2c19a2dc53db.If187b7d93d8b43a6c70e422c837b7636538fb358@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2025-04-16 17:18:53 +02:00
Jose Ignacio Tornos Martinez ba2a09f7b9 wifi: cfg80211: check extended MLD capa/ops in assoc
JIRA: https://issues.redhat.com/browse/RHEL-79791

commit 2bf502251b3ba0734aad81317d62e13389b89a5d
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Wed Jan 1 07:05:27 2025 +0200

    wifi: cfg80211: check extended MLD capa/ops in assoc
    
    Check that additionally extended MLD capa/ops for the MLD is
    consistent, i.e. the same value is reported by all affiliated
    APs/links.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://patch.msgid.link/20250101070249.e29f42c7ae21.Ib2cdce608321ad154e4b13103cc315c3e3cb6b2b@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2025-04-16 17:18:52 +02:00
Jose Ignacio Tornos Martinez 3c78acca07 wifi: mac80211: Support EHT 1024 aggregation size in TX
JIRA: https://issues.redhat.com/browse/RHEL-79791

commit 406c5548c661df0bff6bb6ee79bf9d49faf23e31
Author: MeiChia Chiu <MeiChia.Chiu@mediatek.com>
Date:   Tue Nov 12 16:38:46 2024 +0800

    wifi: mac80211: Support EHT 1024 aggregation size in TX
    
    Support EHT 1024 aggregation size in TX
    
    The 1024 agg size for RX is supported but not for TX.
    This patch adds this support and refactors common parsing logics for
    addbaext in both process_addba_resp and process_addba_req into a
    function.
    
    Reviewed-by: Shayne Chen <shayne.chen@mediatek.com>
    Reviewed-by: Money Wang <money.wang@mediatek.com>
    Co-developed-by: Peter Chiu <chui-hao.chiu@mediatek.com>
    Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
    Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com>
    Link: https://patch.msgid.link/20241112083846.32063-1-MeiChia.Chiu@mediatek.com
    [pass elems/len instead of mgmt/len/is_req]
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2025-04-16 17:18:20 +02:00
Jose Ignacio Tornos Martinez 55cc99607b wifi: cfg80211: move enum ieee80211_ap_reg_power to cfg80211
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 0a9314ad5f45aeb10326dce33c5d70b85f74ef2d
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Thu May 23 12:09:45 2024 +0200

    wifi: cfg80211: move enum ieee80211_ap_reg_power to cfg80211
    
    This really shouldn't have been in ieee80211.h, since it
    doesn't directly represent the spec. Move it to cfg80211
    rather than mac80211 since upcoming changes will use it
    there.
    
    Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Link: https://msgid.link/20240523120945.962b16c831cd.I5745962525b1b176c5b90d37b3720fc100eee406@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:18:00 +01:00
Jose Ignacio Tornos Martinez 4119a3a299 wifi: ieee80211: remove unused enum ieee80211_client_reg_power
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 92a5df6687da755edd4bfe1acb714f00f56d2e06
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Thu May 23 12:09:44 2024 +0200

    wifi: ieee80211: remove unused enum ieee80211_client_reg_power
    
    This has never been used, and it's really not directly
    representing the spec, so shouldn't have been here in
    the first place. Remove it.
    
    Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Link: https://msgid.link/20240523120945.32ed8fc1522d.Id4480d162e1921478e33d145890dc16c263b57bf@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:18:00 +01:00
Jose Ignacio Tornos Martinez de1a5f8b17 wifi: mac80211: pass parsed TPE data to drivers
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 39dc8b8ea387ce7f4fe2d2d6d550ed52aa9aa040
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Mon May 6 21:37:56 2024 +0200

    wifi: mac80211: pass parsed TPE data to drivers
    
    Instead of passing the full TPE elements, in all their glory
    and mixed up data formats for HE backward compatibility, parse
    them fully into the right values, and pass that to the drivers.
    
    Also introduce proper validation already in mac80211, so that
    drivers don't need to do it, and parse the EHT portions.
    
    The code now passes the values in the right order according to
    the channel used by an interface, which could also be a subset
    of the data advertised by the AP, if we couldn't connect with
    the full bandwidth (for whatever reason.)
    
    Also add kunit tests for the more complicated bits of it.
    
    Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
    Acked-by: Kalle Valo <kvalo@kernel.org>
    Link: https://msgid.link/20240506214536.2aa839969b60.I265b28209e0b29772b2f125f7f83de44a4da877b@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:17:43 +01:00
Jose Ignacio Tornos Martinez 7477387801 wifi: ieee80211/ath11k: remove IEEE80211_MAX_NUM_PWR_LEVEL
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 8592fd7ccc95a7cf222985e6297041463e8b4e9d
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Mon May 6 21:37:54 2024 +0200

    wifi: ieee80211/ath11k: remove IEEE80211_MAX_NUM_PWR_LEVEL
    
    The define IEEE80211_MAX_NUM_PWR_LEVEL doesn't make much
    sense. Yes, that table has a maximum value of 8, and the
    table will actually remain that way, but EHT introduced
    a way to encode more levels for 320 MHz channels.
    
    Remove IEEE80211_MAX_NUM_PWR_LEVEL and, for ath11k being
    the only user, add ATH11K_NUM_PWR_LEVELS, where it makes
    sense since it cannot support 320 MHz channels.
    
    Acked-by: Kalle Valo <kvalo@kernel.org>
    Link: https://msgid.link/20240506214536.9818e5471055.Icece7e47e963d6b68e0d97ba13c102b37fbaa689@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:17:42 +01:00
Jose Ignacio Tornos Martinez 206ec35877 wifi: ieee80211: document two FTM related functions
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 9d222c12834d80849afbad7b42822b8ffbbc025f
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Wed May 15 09:38:40 2024 +0200

    wifi: ieee80211: document two FTM related functions
    
    Add some documentation to ieee80211_is_timing_measurement()
    and ieee80211_is_ftm().
    
    Link: https://msgid.link/20240515093852.229aa69e972c.Ifae6762a698e79cd5a49a055fe4c32330e826200@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:17:41 +01:00
Jose Ignacio Tornos Martinez a82cee32a3 wifi: ieee80211: document function return values
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 3c75e99c7036a87f159dbd526060554afb3482f5
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Wed May 15 09:38:39 2024 +0200

    wifi: ieee80211: document function return values
    
    These are all missing, as pointed out when running kernel-doc.
    Add return value documentation and fix some small things while
    at it.
    
    Link: https://msgid.link/20240515093852.1cd5ad8f354d.Idc16e9767fa42de80b659c32efc58aea38c26996@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:17:41 +01:00
Jose Ignacio Tornos Martinez 6c1adb1e6d wifi: ieee80211: remove ieee80211_next_tbtt_present()
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 54856871298c9a8717450351699a8e6fe706101c
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Wed May 15 09:38:38 2024 +0200

    wifi: ieee80211: remove ieee80211_next_tbtt_present()
    
    This is actually completely equivalent to the other function
    ieee80211_is_s1g_short_beacon(), but open-codes the logic.
    Implement the necessary logic in ieee80211_is_s1g_short_beacon()
    and remove ieee80211_next_tbtt_present().
    
    Link: https://msgid.link/20240515093852.774ced74dea8.I152525b4cff6e6a25be6c48fe6a4b89f17bab8a9@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:17:41 +01:00
Jose Ignacio Tornos Martinez bd7356cf4a wifi: ieee80211: add missing doc short descriptions
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 3bb8dce41c023e39ec4d79a83742403b5064a276
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Wed May 15 09:38:36 2024 +0200

    wifi: ieee80211: add missing doc short descriptions
    
    Some structures erroneously don't have a short description,
    add the missing descriptions.
    
    Link: https://msgid.link/20240515093852.16f4355e918e.I940276a4fb006ada68ab1a3e6077e3229fff0f14@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:17:41 +01:00
Jose Ignacio Tornos Martinez 56519ca483 wifi: iwlwifi: mvm: implement link grading
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 2887af4d22f90bcddd3ff9a6eb93ecdaab3acd94
Author: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Date:   Tue Apr 16 13:53:58 2024 +0300

    wifi: iwlwifi: mvm: implement link grading
    
    For selecting what link(s) out of the usable ones
    to activate, calculate a grade for a given link.
    
    Calculation of a link grade is done as follows:
    1. get the estimated throughput according to the RSSI of the link, this
       will be the base grade
    2. get the channel load from the BSS Load Element, subtracting the load
       caused by us. Apply the factor on the grade.
    3. puncturing factor: calculate the percentage of the punctured
       subchannels (out of the total subchannels). Apply this on the grade.
    
    The link grading will be used by the link selection mechanism in a later
    patch.
    
    Also add KUnit tests for it.
    
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Reviewed-by: Johannes Berg <johannes.berg@intel.com>
    Link: https://msgid.link/20240416134215.a6799dbd5643.If137ca6dc443606c7d8c99ec1fc38b325003a7c1@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:16:57 +01:00
Jose Ignacio Tornos Martinez e2a4c61d9a wifi: mac80211: handle indoor AFC/LPI AP on assoc success
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 56cc479188f70bbb6eacbe5ed1e43d96c91ccc6a
Author: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Date:   Mon Mar 18 18:53:23 2024 +0200

    wifi: mac80211: handle indoor AFC/LPI AP on assoc success
    
    Update power_type in bss_conf based on Indoor AFC and LPI power types
    received in HE 6 GHz operation element on assoc success.
    
    Signed-off-by: Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://msgid.link/20240318184907.89c25dae34ff.Ifd8b2983f400623ac03dc032fc9a20025c9ca365@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:16:40 +01:00
Jose Ignacio Tornos Martinez 29147634b0 wifi: ieee80211: fix ieee80211_mle_basic_sta_prof_size_ok()
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit c121514df0daa800cc500dc2738e0b8a1c54af98
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Mon Mar 18 18:53:18 2024 +0200

    wifi: ieee80211: fix ieee80211_mle_basic_sta_prof_size_ok()
    
    If there was a possibility of an MLE basic STA profile without
    subelements, we might reject it because we account for the one
    octet for sta_info_len twice (it's part of itself, and in the
    fixed portion). Like in ieee80211_mle_reconf_sta_prof_size_ok,
    subtract 1 to adjust that.
    
    When reading the elements we did take this into account, and
    since there are always elements, this never really mattered.
    
    Fixes: 7b6f08771bf6 ("wifi: ieee80211: Support validating ML station profile length")
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Reviewed-by: Ilan Peer <ilan.peer@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://msgid.link/20240318184907.00bb0b20ed60.I8c41dd6fc14c4b187ab901dea15ade73c79fb98c@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:16:40 +01:00
Jose Ignacio Tornos Martinez 1ed50a1743 wifi: ieee80211: check for NULL in ieee80211_mle_size_ok()
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit b7793a1a2f370c28b17d9554b58e9dc51afcfcbd
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Mon Mar 18 18:53:17 2024 +0200

    wifi: ieee80211: check for NULL in ieee80211_mle_size_ok()
    
    For simplicity, we may want to pass a NULL element, and
    while we should then pass also a zero length, just be a
    bit more careful here.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://msgid.link/20240318184907.4d983653cb8d.Ic3ea99b60c61ac2f7d38cb9fd202a03c97a05601@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:16:40 +01:00
Jose Ignacio Tornos Martinez 2029244f04 wifi: cfg80211: use ML element parsing helpers
JIRA: https://issues.redhat.com/browse/RHEL-34696

commit 894dd84e49ec114a2dde7b312ae4cada40d15bdb
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Fri Feb 16 13:54:32 2024 +0200

    wifi: cfg80211: use ML element parsing helpers
    
    Use the existing ML element parsing helpers and add a new
    one for this (ieee80211_mle_get_mld_id).
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://msgid.link/20240216135047.4da47b1f035b.I437a5570ac456449facb0b147851ef24a1e473c2@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-06-17 09:19:40 +02:00
Jose Ignacio Tornos Martinez 972cdef7ff wifi: mac80211: align ieee80211_mle_get_bss_param_ch_cnt()
JIRA: https://issues.redhat.com/browse/RHEL-34696

commit 6bd14aee0bd25525ab229acd9bfe536dd8642364
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Fri Feb 16 13:54:31 2024 +0200

    wifi: mac80211: align ieee80211_mle_get_bss_param_ch_cnt()
    
    Align the prototype of ieee80211_mle_get_bss_param_ch_cnt()
    to also take a u8 * like the other functions, and make it
    return -1 when the field isn't found, so that mac80211 can
    check that instead of explicitly open-coding the check.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://msgid.link/20240216135047.583309181bc3.Ia61cb0b4fc034d5ac8fcfaf6f6fb2e115fadafe7@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-06-17 09:19:40 +02:00
Jose Ignacio Tornos Martinez 3e4414a7ae wifi: mac80211: adjust EHT capa when lowering bandwidth
JIRA: https://issues.redhat.com/browse/RHEL-34696

commit 6239da18d2f947523a80fb1f85f8d8a13d1726c1
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Mon Jan 29 20:19:28 2024 +0100

    wifi: mac80211: adjust EHT capa when lowering bandwidth
    
    If intending to associate with a lower bandwidth, remove capabilities
    related to 320 MHz from the EHT capabilities element. Also change the
    EHT MCS-NSS set accordingly: if just reducing 320->160 or similar the
    format doesn't change, just cut off the last bytes. If changing from
    higher bandwidth to 20 MHz only EHT STA, adjust the format.
    
    Note that this also requires adjusting the caller in mlme.c since the
    data written can now be shorter than it determined. We need to clean
    all that up. Since the other callers pass NULL for the conn limit, we
    don't need to change things there.
    
    Link: https://msgid.link/20240129202041.b5f6df108c77.I0d8ea04079c61cb3744cc88625eeaf0d4776dc2b@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-06-17 09:19:18 +02:00
Jose Ignacio Tornos Martinez 22e807ba08 wifi: mac80211: implement MLO multicast deduplication
JIRA: https://issues.redhat.com/browse/RHEL-34696

commit 676259100cf3a81dd2d47918b36edb237986b9df
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Mon Jan 29 20:04:57 2024 +0100

    wifi: mac80211: implement MLO multicast deduplication
    
    If the vif is an MLD then it may receive multicast from
    different links, and should drop those frames according
    to the SN. Implement that.
    
    Link: https://msgid.link/20240129200456.693b77d14b44.I491846f2bea0058c14eab6422962c10bfae9b675@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-06-17 09:19:17 +02:00
Jose Ignacio Tornos Martinez ea348ca7c7 wifi: mac80211: add/use ieee80211_get_sn()
JIRA: https://issues.redhat.com/browse/RHEL-34696

commit b1344b1399daec9aca62bd0b2ea94874f5b8e126
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Mon Jan 29 20:04:56 2024 +0100

    wifi: mac80211: add/use ieee80211_get_sn()
    
    This will also be useful for MLO duplicate multicast
    detection, but add it already here and use it in one
    place that trivially converts.
    
    Link: https://msgid.link/20240129200456.f0ff49c80006.I850d2785ab1640e56e262d3ad7343b87f6962552@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-06-17 09:19:17 +02:00
Jose Ignacio Tornos Martinez f8817eee73 wifi: mac80211: refactor puncturing bitmap extraction
JIRA: https://issues.redhat.com/browse/RHEL-34696

commit c478db84c8544156b80c5e5d3a8c7840d557707a
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Mon Jan 29 19:34:45 2024 +0100

    wifi: mac80211: refactor puncturing bitmap extraction
    
    Add a new inline helper function to ieee80211.h to
    extract the disabled subchannels bitmap from an EHT
    operation element, and use that in mac80211 where
    we do that.
    
    Link: https://msgid.link/20240129194108.d9f50dcec8d0.I8b08cbc2490a734fafcce0fa0fc328211ba6f10b@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-06-17 09:19:16 +02:00
Jose Ignacio Tornos Martinez 8115a05a17 wifi: cfg80211: validate MLO connections better
JIRA: https://issues.redhat.com/browse/RHEL-34696

commit ccb964b4ab1663ce92f389b72c052fc47a0ffdb9
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Jan 2 21:35:44 2024 +0200

    wifi: cfg80211: validate MLO connections better
    
    When going into an MLO connection, validate that the link IDs
    match what userspace indicated, and that the AP MLD addresses
    and capabilities are all matching between the links.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://msgid.link/20240102213313.ff83c034cb9a.I9962db0bfa8c73b37b8d5b59a3fad7f02f2129ae@changeid
    [roll in extra fix from Miri to actually check the return value]
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-06-17 09:18:49 +02:00
Jose Ignacio Tornos Martinez 0431b8c504 wifi: mac80211: add support for negotiated TTLM request
JIRA: https://issues.redhat.com/browse/RHEL-34696

commit f7660b3f584aadd25dde18aa1902488577a15863
Author: Ayala Beker <ayala.beker@intel.com>
Date:   Tue Jan 2 21:35:37 2024 +0200

    wifi: mac80211: add support for negotiated TTLM request
    
    Update neg_ttlm and active_links according to the new mapping,
    and send a negotiated TID-to-link map request with the new mapping.
    
    Signed-off-by: Ayala Beker <ayala.beker@intel.com>
    Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
    Reviewed-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://msgid.link/20240102213313.eeb385d771df.I2a5441c14421de884dbd93d1624ce7bb2c944833@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-06-17 09:18:48 +02:00
Jose Ignacio Tornos Martinez 64f0ceb7e0 wifi: ieee80211: add definitions for negotiated TID to Link map
JIRA: https://issues.redhat.com/browse/RHEL-34696

commit 83e897a961b801536dd1d736e9ede5b1ddb1c188
Author: Ayala Beker <ayala.beker@intel.com>
Date:   Tue Jan 2 21:35:33 2024 +0200

    wifi: ieee80211: add definitions for negotiated TID to Link map
    
    Add the relevant definitions and structures for TID to Link mapping
    negotiation request/response/teardown according to P802.11be_D4.0.
    
    Signed-off-by: Ayala Beker <ayala.beker@intel.com>
    Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
    Reviewed-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://msgid.link/20240102213313.9ef2b866c8c7.Ieaf7dadea9961e0edc55d19c99f0f9fbae591de6@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-06-17 09:18:48 +02:00
Jose Ignacio Tornos Martinez d0306bdacf wifi: cfg80211: handle UHB AP and STA power type
JIRA: https://issues.redhat.com/browse/RHEL-28754

commit 645f3d85129d8aac3b896ba685fbc20a31c2c036
Author: Mukesh Sisodiya <mukesh.sisodiya@intel.com>
Date:   Wed Dec 20 13:41:38 2023 +0200

    wifi: cfg80211: handle UHB AP and STA power type
    
    UHB AP send supported power type(LPI, SP, VLP)
    in beacon and probe response IE and STA should
    connect to these AP only if their regulatory support
    the AP power type.
    
    Beacon/Probe response are reported to userspace
    with reason "STA regulatory not supporting to connect to AP
    based on transmitted power type" and it should
    not connect to AP.
    
    Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com>
    Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
    Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
    Link: https://msgid.link/20231220133549.cbfbef9170a9.I432f78438de18aa9f5c9006be12e41dc34cc47c5@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-03-18 17:58:10 +01:00
Jose Ignacio Tornos Martinez 549455230f wifi: ieee80211: fix PV1 frame control field name
JIRA: https://issues.redhat.com/browse/RHEL-28754

commit d3ca4ab4f16eb81dc3e7721251adcba49b229d54
Author: Liam Kearney <liam.kearney@morsemicro.com>
Date:   Wed Oct 25 11:27:55 2023 +1100

    wifi: ieee80211: fix PV1 frame control field name
    
    Update PV1 frame control field TODS to FROMDS to match 802.11 standard
    
    Signed-off-by: Liam Kearney <liam.kearney@morsemicro.com>
    Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
    Link: https://lore.kernel.org/r/20231025002755.1752983-1-liam.kearney@morsemicro.com
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-03-18 17:57:37 +01:00
Jose Ignacio Tornos Martinez 2f81aabebd wifi: ieee80211: don't require protected vendor action frames
JIRA: https://issues.redhat.com/browse/RHEL-19746

commit 98fb9b9680c9f3895ced02d6a73e27f5d7b5892b
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Wed Dec 6 22:37:57 2023 +0100

    wifi: ieee80211: don't require protected vendor action frames
    
    For vendor action frames, whether a protected one should be
    used or not is clearly up to the individual vendor and frame,
    so even though a protected dual is defined, it may not get
    used. Thus, don't require protection for vendor action frames
    when they're used in a connection.
    
    Since we obviously don't process frames unknown to the kernel
    in the kernel, it may makes sense to invert this list to have
    all the ones the kernel processes and knows to be requiring
    protection, but that'd be a different change.
    
    Fixes: 91535613b609 ("wifi: mac80211: don't drop all unprotected public action frames")
    Reported-by: Jouni Malinen <j@w1.fi>
    Link: https://msgid.link/20231206223801.f6a2cf4e67ec.Ifa6acc774bd67801d3dafb405278f297683187aa@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-02-01 15:29:59 +01:00
Jose Ignacio Tornos Martinez 9671a6695a wifi: avoid offset calculation on NULL pointer
JIRA: https://issues.redhat.com/browse/RHEL-19746

commit ef5828805842204dd0259ecfc132b5916c8a77ae
Author: Michael-CY Lee <michael-cy.lee@mediatek.com>
Date:   Wed Nov 22 11:02:37 2023 +0800

    wifi: avoid offset calculation on NULL pointer
    
    ieee80211_he_6ghz_oper() can be passed a NULL pointer
    and checks for that, but already did the calculation
    to inside of it before. Move it after the check.
    
    Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
    Link: https://lore.kernel.org/r/20231122030237.31276-1-michael-cy.lee@mediatek.com
    [rewrite commit message]
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-02-01 15:29:58 +01:00
Jose Ignacio Tornos Martinez e6b99499cd wifi: remove unused argument of ieee80211_get_tdls_action()
JIRA: https://issues.redhat.com/browse/RHEL-19746

commit 89141f965325de9aac3805cd506df788179b2809
Author: Dmitry Antipov <dmantipov@yandex.ru>
Date:   Wed Oct 4 18:30:29 2023 +0300

    wifi: remove unused argument of ieee80211_get_tdls_action()
    
    Remove unused 'hdr_size' argument of 'ieee80211_get_tdls_action()'
    and adjust 'ieee80211_report_used_skb()' accordingly.
    
    Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
    Link: https://lore.kernel.org/r/20231004153032.206134-1-dmantipov@yandex.ru
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-02-01 15:29:47 +01:00
Jose Ignacio Tornos Martinez fecdb9b22b wifi: ieee80211: add UL-bandwidth definition of trigger frame
JIRA: https://issues.redhat.com/browse/RHEL-19746

commit 823a0258912b1a4f627e455bee7e78d349c29c5b
Author: Po-Hao Huang <phhuang@realtek.com>
Date:   Mon Sep 25 16:08:59 2023 +0800

    wifi: ieee80211: add UL-bandwidth definition of trigger frame
    
    Define UL-bandwidth values of trigger frame according to 802.11 std.
    
    Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
    Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
    Link: https://lore.kernel.org/r/20230925080902.51449-2-pkshih@realtek.com
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-02-01 15:29:16 +01:00
Jose Ignacio Tornos Martinez cb3f2d13ce wifi: mac80211: support antenna control in injection
JIRA: https://issues.redhat.com/browse/RHEL-19746

commit ef246a1480cc484cd2aeda75737cb0848616ddf3
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Wed Sep 20 21:25:26 2023 +0300

    wifi: mac80211: support antenna control in injection
    
    Support antenna control for injection by parsing the antenna
    radiotap field (which may be presented multiple times) and
    telling the driver about the resulting antenna bitmap. Of
    course there's no guarantee the driver will actually honour
    this, just like any other injection control.
    
    If misconfigured, i.e. the injected HT/VHT MCS needs more
    chains than antennas are configured, the bitmap is reset to
    zero, indicating no selection.
    
    For now this is only set up for two anntenas so we keep more
    free bits, but that can be trivially extended if any driver
    implements support for it that can deal with hardware with
    more antennas.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230920211508.f71001aa4da9.I00ccb762a806ea62bc3d728fa3a0d29f4f285eeb@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-02-01 15:29:13 +01:00
Jose Ignacio Tornos Martinez 16d6bff5a3 wifi: mac80211: add support for parsing TID to Link mapping element
JIRA: https://issues.redhat.com/browse/RHEL-19746

commit 62e9c64eedfeb697ba28081ccaac59a45f9a96e1
Author: Ayala Beker <ayala.beker@intel.com>
Date:   Wed Sep 20 21:25:24 2023 +0300

    wifi: mac80211: add support for parsing TID to Link mapping element
    
    Add the relevant definitions for TID to Link mapping element
    according to the P802.11be_D4.0.
    
    Signed-off-by: Ayala Beker <ayala.beker@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230920211508.9ea9b0b4412a.I2281ab2c70e8b43a39032dc115db6a80f1f0b3f4@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-02-01 15:29:13 +01:00
Jose Ignacio Tornos Martinez fec328cca9 wifi: mac80211: use bandwidth indication element for CSA
JIRA: https://issues.redhat.com/browse/RHEL-19746

commit b3239498353484fd6ddeb513df89c4628cd623d0
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Wed Sep 20 21:25:12 2023 +0300

    wifi: mac80211: use bandwidth indication element for CSA
    
    In CSA, parse the (EHT) bandwidth indication element and
    use it (in fact prefer it if present).
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230920211508.43ef01920556.If4f24a61cd634ab1e50eba43899b9e992bf25602@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-02-01 15:29:12 +01:00
Jose Ignacio Tornos Martinez ede708ba9d wifi: mac80211: Use flexible array in struct ieee80211_tim_ie
JIRA: https://issues.redhat.com/browse/RHEL-19746

commit 2ae5c9248e06dac2c2360be26b4e25f673238337
Author: Jeff Johnson <quic_jjohnson@quicinc.com>
Date:   Thu Aug 31 11:22:58 2023 -0700

    wifi: mac80211: Use flexible array in struct ieee80211_tim_ie
    
    Currently struct ieee80211_tim_ie defines:
            u8 virtual_map[1];
    
    Per the guidance in [1] change this to be a flexible array.
    
    Per the discussion in [2] wrap the virtual_map in a union with a u8
    item in order to preserve the existing expectation that the
    virtual_map must contain at least one octet (at least when used in a
    non-S1G PPDU). This means that no driver changes are required.
    
    [1] https://docs.kernel.org/process/deprecated.html#zero-length-and-one-element-arrays
    [2] https://lore.kernel.org/linux-wireless/202308301529.AC90A9EF98@keescook/
    
    Suggested-by: Kees Cook <keescook@chromium.org>
    Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
    Reviewed-by: Kees Cook <keescook@chromium.org>
    Link: https://lore.kernel.org/r/20230831-ieee80211_tim_ie-v3-2-e10ff584ab5d@quicinc.com
    [add wifi prefix]
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-02-01 15:28:54 +01:00
Jose Ignacio Tornos Martinez 43698fed49 wifi: mac80211: don't drop all unprotected public action frames
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit 91535613b6090fc968c601d11d4e2f16b333713c
Author: Avraham Stern <avraham.stern@intel.com>
Date:   Mon Oct 16 14:52:48 2023 +0300

    wifi: mac80211: don't drop all unprotected public action frames
    
    Not all public action frames have a protected variant. When MFP is
    enabled drop only public action frames that have a dual protected
    variant.
    
    Fixes: 76a3059cf124 ("wifi: mac80211: drop some unprotected action frames")
    Signed-off-by: Avraham Stern <avraham.stern@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20231016145213.2973e3c8d3bb.I6198b8d3b04cf4a97b06660d346caec3032f232a@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:02:39 +01:00
Jose Ignacio Tornos Martinez 0208be137f wifi: Fix ieee80211.h kernel-doc issues
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit 9e261e6da0a814f4ee1856ab06b19c25190aeffb
Author: Jeff Johnson <quic_jjohnson@quicinc.com>
Date:   Tue Aug 22 09:30:17 2023 -0700

    wifi: Fix ieee80211.h kernel-doc issues
    
    The kernel-doc script identified multiple issues in ieee80211.h, so
    fix them. In the process update some references to the latest
    applicable specification.
    
    include/linux/ieee80211.h:848: warning: Function parameter or member 'count' not described in 'ieee80211_quiet_ie'
    include/linux/ieee80211.h:848: warning: Function parameter or member 'period' not described in 'ieee80211_quiet_ie'
    include/linux/ieee80211.h:848: warning: Function parameter or member 'duration' not described in 'ieee80211_quiet_ie'
    include/linux/ieee80211.h:848: warning: Function parameter or member 'offset' not described in 'ieee80211_quiet_ie'
    include/linux/ieee80211.h:860: warning: Function parameter or member 'token' not described in 'ieee80211_msrment_ie'
    include/linux/ieee80211.h:860: warning: Function parameter or member 'mode' not described in 'ieee80211_msrment_ie'
    include/linux/ieee80211.h:860: warning: Function parameter or member 'type' not described in 'ieee80211_msrment_ie'
    include/linux/ieee80211.h:860: warning: Function parameter or member 'request' not described in 'ieee80211_msrment_ie'
    include/linux/ieee80211.h:871: warning: Function parameter or member 'mode' not described in 'ieee80211_channel_sw_ie'
    include/linux/ieee80211.h:871: warning: Function parameter or member 'new_ch_num' not described in 'ieee80211_channel_sw_ie'
    include/linux/ieee80211.h:871: warning: Function parameter or member 'count' not described in 'ieee80211_channel_sw_ie'
    include/linux/ieee80211.h:883: warning: Function parameter or member 'mode' not described in 'ieee80211_ext_chansw_ie'
    include/linux/ieee80211.h:883: warning: Function parameter or member 'new_operating_class' not described in 'ieee80211_ext_chansw_ie'
    include/linux/ieee80211.h:883: warning: Function parameter or member 'new_ch_num' not described in 'ieee80211_ext_chansw_ie'
    include/linux/ieee80211.h:883: warning: Function parameter or member 'count' not described in 'ieee80211_ext_chansw_ie'
    include/linux/ieee80211.h:905: warning: Function parameter or member 'mesh_ttl' not described in 'ieee80211_mesh_chansw_params_ie'
    include/linux/ieee80211.h:905: warning: Function parameter or member 'mesh_flags' not described in 'ieee80211_mesh_chansw_params_ie'
    include/linux/ieee80211.h:905: warning: Function parameter or member 'mesh_reason' not described in 'ieee80211_mesh_chansw_params_ie'
    include/linux/ieee80211.h:905: warning: Function parameter or member 'mesh_pre_value' not described in 'ieee80211_mesh_chansw_params_ie'
    include/linux/ieee80211.h:913: warning: Function parameter or member 'new_channel_width' not described in 'ieee80211_wide_bw_chansw_ie'
    include/linux/ieee80211.h:913: warning: Function parameter or member 'new_center_freq_seg0' not described in 'ieee80211_wide_bw_chansw_ie'
    include/linux/ieee80211.h:913: warning: Function parameter or member 'new_center_freq_seg1' not described in 'ieee80211_wide_bw_chansw_ie'
    include/linux/ieee80211.h:926: warning: expecting prototype for struct ieee80211_tim. Prototype was for struct ieee80211_tim_ie instead
    include/linux/ieee80211.h:941: warning: Function parameter or member 'meshconf_psel' not described in 'ieee80211_meshconf_ie'
    include/linux/ieee80211.h:941: warning: Function parameter or member 'meshconf_pmetric' not described in 'ieee80211_meshconf_ie'
    include/linux/ieee80211.h:941: warning: Function parameter or member 'meshconf_congest' not described in 'ieee80211_meshconf_ie'
    include/linux/ieee80211.h:941: warning: Function parameter or member 'meshconf_synch' not described in 'ieee80211_meshconf_ie'
    include/linux/ieee80211.h:941: warning: Function parameter or member 'meshconf_auth' not described in 'ieee80211_meshconf_ie'
    include/linux/ieee80211.h:941: warning: Function parameter or member 'meshconf_form' not described in 'ieee80211_meshconf_ie'
    include/linux/ieee80211.h:941: warning: Function parameter or member 'meshconf_cap' not described in 'ieee80211_meshconf_ie'
    include/linux/ieee80211.h:964: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
     * mesh channel switch parameters element's flag indicator
    include/linux/ieee80211.h:984: warning: Function parameter or member 'rann_flags' not described in 'ieee80211_rann_ie'
    include/linux/ieee80211.h:984: warning: Function parameter or member 'rann_hopcount' not described in 'ieee80211_rann_ie'
    include/linux/ieee80211.h:984: warning: Function parameter or member 'rann_ttl' not described in 'ieee80211_rann_ie'
    include/linux/ieee80211.h:984: warning: Function parameter or member 'rann_addr' not described in 'ieee80211_rann_ie'
    include/linux/ieee80211.h:984: warning: Function parameter or member 'rann_seq' not described in 'ieee80211_rann_ie'
    include/linux/ieee80211.h:984: warning: Function parameter or member 'rann_interval' not described in 'ieee80211_rann_ie'
    include/linux/ieee80211.h:984: warning: Function parameter or member 'rann_metric' not described in 'ieee80211_rann_ie'
    include/linux/ieee80211.h:1019: warning: expecting prototype for enum ieee80211_opmode_bits. Prototype was for enum ieee80211_vht_opmode_bits instead
    include/linux/ieee80211.h:1052: warning: Function parameter or member 'tx_power' not described in 'ieee80211_tpc_report_ie'
    include/linux/ieee80211.h:1052: warning: Function parameter or member 'link_margin' not described in 'ieee80211_tpc_report_ie'
    include/linux/ieee80211.h:1073: warning: Function parameter or member 'compat_info' not described in 'ieee80211_s1g_bcn_compat_ie'
    include/linux/ieee80211.h:1073: warning: Function parameter or member 'beacon_int' not described in 'ieee80211_s1g_bcn_compat_ie'
    include/linux/ieee80211.h:1073: warning: Function parameter or member 'tsf_completion' not described in 'ieee80211_s1g_bcn_compat_ie'
    include/linux/ieee80211.h:1086: warning: Function parameter or member 'ch_width' not described in 'ieee80211_s1g_oper_ie'
    include/linux/ieee80211.h:1086: warning: Function parameter or member 'oper_class' not described in 'ieee80211_s1g_oper_ie'
    include/linux/ieee80211.h:1086: warning: Function parameter or member 'primary_ch' not described in 'ieee80211_s1g_oper_ie'
    include/linux/ieee80211.h:1086: warning: Function parameter or member 'oper_ch' not described in 'ieee80211_s1g_oper_ie'
    include/linux/ieee80211.h:1086: warning: Function parameter or member 'basic_mcs_nss' not described in 'ieee80211_s1g_oper_ie'
    include/linux/ieee80211.h:1097: warning: Function parameter or member 'aid' not described in 'ieee80211_aid_response_ie'
    include/linux/ieee80211.h:1097: warning: Function parameter or member 'switch_count' not described in 'ieee80211_aid_response_ie'
    include/linux/ieee80211.h:1097: warning: Function parameter or member 'response_int' not described in 'ieee80211_aid_response_ie'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_STATUS' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_MINOR_REASON' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_CAPABILITY' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_DEVICE_ID' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_GO_INTENT' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_GO_CONFIG_TIMEOUT' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_LISTEN_CHANNEL' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_GROUP_BSSID' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_EXT_LISTEN_TIMING' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_INTENDED_IFACE_ADDR' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_MANAGABILITY' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_CHANNEL_LIST' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_ABSENCE_NOTICE' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_DEVICE_INFO' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_GROUP_INFO' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_GROUP_ID' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_INTERFACE' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_OPER_CHANNEL' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_INVITE_FLAGS' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_VENDOR_SPECIFIC' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1519: warning: Enum value 'IEEE80211_P2P_ATTR_MAX' not described in enum 'ieee80211_p2p_attr_id'
    include/linux/ieee80211.h:1554: warning: Function parameter or member 'frame_control' not described in 'ieee80211_bar'
    include/linux/ieee80211.h:1554: warning: Function parameter or member 'duration' not described in 'ieee80211_bar'
    include/linux/ieee80211.h:1554: warning: Function parameter or member 'ra' not described in 'ieee80211_bar'
    include/linux/ieee80211.h:1554: warning: Function parameter or member 'ta' not described in 'ieee80211_bar'
    include/linux/ieee80211.h:1554: warning: Function parameter or member 'control' not described in 'ieee80211_bar'
    include/linux/ieee80211.h:1554: warning: Function parameter or member 'start_seq_num' not described in 'ieee80211_bar'
    include/linux/ieee80211.h:1579: warning: Function parameter or member 'reserved' not described in 'ieee80211_mcs_info'
    include/linux/ieee80211.h:1618: warning: Function parameter or member 'cap_info' not described in 'ieee80211_ht_cap'
    include/linux/ieee80211.h:1618: warning: Function parameter or member 'ampdu_params_info' not described in 'ieee80211_ht_cap'
    include/linux/ieee80211.h:1618: warning: Function parameter or member 'mcs' not described in 'ieee80211_ht_cap'
    include/linux/ieee80211.h:1618: warning: Function parameter or member 'extended_ht_cap_info' not described in 'ieee80211_ht_cap'
    include/linux/ieee80211.h:1618: warning: Function parameter or member 'tx_BF_cap_info' not described in 'ieee80211_ht_cap'
    include/linux/ieee80211.h:1618: warning: Function parameter or member 'antenna_selection_info' not described in 'ieee80211_ht_cap'
    include/linux/ieee80211.h:1704: warning: Function parameter or member 'primary_chan' not described in 'ieee80211_ht_operation'
    include/linux/ieee80211.h:1704: warning: Function parameter or member 'ht_param' not described in 'ieee80211_ht_operation'
    include/linux/ieee80211.h:1704: warning: Function parameter or member 'operation_mode' not described in 'ieee80211_ht_operation'
    include/linux/ieee80211.h:1704: warning: Function parameter or member 'stbc_param' not described in 'ieee80211_ht_operation'
    include/linux/ieee80211.h:1704: warning: Function parameter or member 'basic_set' not described in 'ieee80211_ht_operation'
    include/linux/ieee80211.h:1872: warning: Function parameter or member 'mac_cap_info' not described in 'ieee80211_he_cap_elem'
    include/linux/ieee80211.h:1872: warning: Function parameter or member 'phy_cap_info' not described in 'ieee80211_he_cap_elem'
    include/linux/ieee80211.h:1936: warning: Function parameter or member 'he_oper_params' not described in 'ieee80211_he_operation'
    include/linux/ieee80211.h:1936: warning: Function parameter or member 'he_mcs_nss_set' not described in 'ieee80211_he_operation'
    include/linux/ieee80211.h:1936: warning: Function parameter or member 'optional' not described in 'ieee80211_he_operation'
    include/linux/ieee80211.h:1948: warning: Function parameter or member 'he_sr_control' not described in 'ieee80211_he_spr'
    include/linux/ieee80211.h:1948: warning: Function parameter or member 'optional' not described in 'ieee80211_he_spr'
    include/linux/ieee80211.h:1960: warning: Function parameter or member 'aifsn' not described in 'ieee80211_he_mu_edca_param_ac_rec'
    include/linux/ieee80211.h:1960: warning: Function parameter or member 'ecw_min_max' not described in 'ieee80211_he_mu_edca_param_ac_rec'
    include/linux/ieee80211.h:1960: warning: Function parameter or member 'mu_edca_timer' not described in 'ieee80211_he_mu_edca_param_ac_rec'
    include/linux/ieee80211.h:1974: warning: Function parameter or member 'mu_qos_info' not described in 'ieee80211_mu_edca_param_set'
    include/linux/ieee80211.h:1974: warning: Function parameter or member 'ac_be' not described in 'ieee80211_mu_edca_param_set'
    include/linux/ieee80211.h:1974: warning: Function parameter or member 'ac_bk' not described in 'ieee80211_mu_edca_param_set'
    include/linux/ieee80211.h:1974: warning: Function parameter or member 'ac_vi' not described in 'ieee80211_mu_edca_param_set'
    include/linux/ieee80211.h:1974: warning: Function parameter or member 'ac_vo' not described in 'ieee80211_mu_edca_param_set'
    include/linux/ieee80211.h:2194: warning: Enum value 'IEEE80211_REG_LPI_AP' not described in enum 'ieee80211_ap_reg_power'
    include/linux/ieee80211.h:2194: warning: Enum value 'IEEE80211_REG_SP_AP' not described in enum 'ieee80211_ap_reg_power'
    include/linux/ieee80211.h:2194: warning: Enum value 'IEEE80211_REG_VLP_AP' not described in enum 'ieee80211_ap_reg_power'
    include/linux/ieee80211.h:2194: warning: Excess enum value 'IEEE80211_REG_SP' description in 'ieee80211_ap_reg_power'
    include/linux/ieee80211.h:2194: warning: Excess enum value 'IEEE80211_REG_VLP' description in 'ieee80211_ap_reg_power'
    include/linux/ieee80211.h:2194: warning: Excess enum value 'IEEE80211_REG_LPI' description in 'ieee80211_ap_reg_power'
    include/linux/ieee80211.h:2577: warning: cannot understand function prototype: 'struct ieee80211_he_6ghz_oper '
    include/linux/ieee80211.h:2624: warning: Function parameter or member 'tx_power_info' not described in 'ieee80211_tx_pwr_env'
    include/linux/ieee80211.h:2624: warning: Function parameter or member 'tx_power' not described in 'ieee80211_tx_pwr_env'
    include/linux/ieee80211.h:4485: warning: expecting prototype for RSNX Capabilities(). Prototype was for WLAN_RSNX_CAPA_PROTECTED_TWT() instead
    include/linux/ieee80211.h:4734: warning: expecting prototype for ieee80211_mle_get_eml_sync_delay(). Prototype was for ieee80211_mle_get_eml_med_sync_delay() instead
    117 warnings as Errors
    
    Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
    Link: https://lore.kernel.org/r/20230822-kerneldoc-v1-1-0d42ce5029bf@quicinc.com
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:02:29 +01:00
Jose Ignacio Tornos Martinez 79481e6eae wifi: ieee80211: fix erroneous NSTR bitmap size checks
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit 31b5a547622b3782388eb676081da1eefe5b98d2
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Thu Jun 22 19:44:22 2023 +0200

    wifi: ieee80211: fix erroneous NSTR bitmap size checks
    
    The complete profile bit together with the NSTR link pair
    present bit indicate whether or not the NSTR bitmap is,
    the NSTR bitmap size just indicates how big it is.
    
    Fixes: 7b6f08771bf6 ("wifi: ieee80211: Support validating ML station profile length")
    Fixes: 5c1f97537bfb ("wifi: mac80211: store BSS param change count from assoc response")
    Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:53 +01:00
Jose Ignacio Tornos Martinez b0d0a78228 wifi: cfg80211: Retrieve PSD information from RNR AP information
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit 4ef2f53e50cba9780057b51357ef45cb5f49859d
Author: Ilan Peer <ilan.peer@intel.com>
Date:   Mon Jun 19 16:26:52 2023 +0300

    wifi: cfg80211: Retrieve PSD information from RNR AP information
    
    Retrieve the Power Spectral Density (PSD) value from RNR AP
    information entry and store it so it could be used by the drivers.
    
    PSD value is explained in Section 9.4.2.170 of Draft
    P802.11Revme_D2.0.
    
    Signed-off-by: Ilan Peer <ilan.peer@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230619161906.067ded2b8fc3.I9f407ab5800cbb07045a0537a513012960ced740@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:47 +01:00
Jose Ignacio Tornos Martinez 500a23a44a wifi: mac80211: store BSS param change count from assoc response
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit 5c1f97537bfb9f358e0ecc88c3c8a913c51944cb
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Mon Jun 19 16:26:48 2023 +0300

    wifi: mac80211: store BSS param change count from assoc response
    
    When receiving a multi-link association response, make sure to
    track the BSS parameter change count for each link, including
    the assoc link.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230619161906.1799c164e7e9.I8e2c1f5eec6eec3fab525ae2dead9f6f099a2427@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:46 +01:00
Jose Ignacio Tornos Martinez 6f8ef18e52 wifi: mac80211: check EHT basic MCS/NSS set
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit cf0b045ebf6bba7764151e1759c874c43964445a
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Sun Jun 18 21:50:02 2023 +0300

    wifi: mac80211: check EHT basic MCS/NSS set
    
    Check that all the NSS in the EHT basic MCS/NSS set
    are actually supported, otherwise disable EHT for the
    connection.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230618214436.737827c906c9.I0c11a3cd46ab4dcb774c11a5bbc30aecfb6fce11@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:43 +01:00
Jose Ignacio Tornos Martinez cc72a0ff7e wifi: update multi-link element STA reconfig
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit c870d66f1b7f51fa3401771ff6c41fd78adb869e
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Sun Jun 18 21:49:59 2023 +0300

    wifi: update multi-link element STA reconfig
    
    Update the MLE STA reconfig sub-type to 802.11be D3.0
    format, which includes the operation update field.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230618214436.2e1383b31f07.I8055a111c8fcf22e833e60f5587a4d8d21caca5b@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:43 +01:00
Jose Ignacio Tornos Martinez af248962b6 wifi: ieee80211: reorder presence checks in MLE per-STA profile
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit 888a325fe0a7d149828600c663869636ffdbe81f
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Sun Jun 18 21:49:56 2023 +0300

    wifi: ieee80211: reorder presence checks in MLE per-STA profile
    
    In ieee80211_mle_sta_prof_size_ok(), the presence
    checks aren't ordered by field order, so that's a
    bit confusing. Reorder them.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230618214436.fdbf17320a37.I517cf27fdc3f6e5d6a2615182da47ba4bdf14039@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:42 +01:00
Jose Ignacio Tornos Martinez df9b3dba5e wifi: mac80211: Support link removal using Reconfiguration ML element
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit 8eb8dd2ffbbb6b0b8843b66754ee9f129f1b2d6c
Author: Ilan Peer <ilan.peer@intel.com>
Date:   Sun Jun 18 21:49:55 2023 +0300

    wifi: mac80211: Support link removal using Reconfiguration ML element
    
    Add support for handling link removal indicated by the
    Reconfiguration Multi-Link element.
    
    Signed-off-by: Ilan Peer <ilan.peer@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230618214436.d8a046dc0c1a.I4dcf794da2a2d9f4e5f63a4b32158075d27c0660@changeid
    [use cfg80211_links_removed() API instead]
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:42 +01:00
Jose Ignacio Tornos Martinez ba5928b9d8 wifi: cfg80211: use structs for TBTT information access
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit dc92e54c30c4bc9d30e674a445dfe1afdca991cf
Author: Benjamin Berg <benjamin.berg@intel.com>
Date:   Sun Jun 18 21:49:52 2023 +0300

    wifi: cfg80211: use structs for TBTT information access
    
    Make the data access a bit nicer overall by using structs. There is a
    small change here to also accept a TBTT information length of eight
    bytes as we do not require the 20 MHz PSD information.
    
    This also fixes a bug reading the short SSID on big endian machines.
    
    Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230618214436.4c3f8901c1bc.Ic3e94fd6e1bccff7948a252ad3bb87e322690a17@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:41 +01:00
Jose Ignacio Tornos Martinez 4728b781ae wifi: ieee80211: add structs for TBTT information access
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit 50181fe4f59dcfae391523def6f62e32d86c46b1
Author: Benjamin Berg <benjamin.berg@intel.com>
Date:   Sun Jun 18 21:49:51 2023 +0300

    wifi: ieee80211: add structs for TBTT information access
    
    The TBTT information can have various lengths with different elements
    thare are present. Add definitions for the two types that we are
    interested in (i.e. the ones that contain the BSSID).
    
    Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230618214436.2a6f8766a3ec.Ic962e28492212cc8ee1eb602b8f07a4ea172fc4a@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:41 +01:00
Jose Ignacio Tornos Martinez 677ae155cd wifi: ieee80211: add definitions for RNR MLD params
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit 66d9c573fbb992f11d29a907c339792ee0de82ee
Author: Benjamin Berg <benjamin.berg@intel.com>
Date:   Sun Jun 18 21:49:49 2023 +0300

    wifi: ieee80211: add definitions for RNR MLD params
    
    Add the definitions necessary to parse the MLD parameters
    included in an RNR element.
    
    Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230618214436.9999842237c0.I80f00a90cb4e43071432b4158f206c73ba799618@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:41 +01:00
Jose Ignacio Tornos Martinez eb549ca558 wifi: ieee80211: use default for medium synchronization delay
JIRA: https://issues.redhat.com/browse/RHEL-2907

commit 39bcc5b8e16e75cfccc36fca3d425c64eef3df04
Author: Benjamin Berg <benjamin.berg@intel.com>
Date:   Sun Jun 18 21:49:47 2023 +0300

    wifi: ieee80211: use default for medium synchronization delay
    
    Default values are defined for the information included in the Medium
    Synchronization Delay Information subfield. The spec says to
    initialize the values to these defaults and only change them when
    included.
    
    Return the default value instead of zero so that the defaults are
    used when the field is not included in the association response.
    
    Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Link: https://lore.kernel.org/r/20230618214435.a7725bef3795.I2d3528cf4af021c5b37f97fbe64ae9116ce9bef1@changeid
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2023-11-27 15:01:40 +01:00