mbox series

[v5,0/2] Disable BSS color collision detection in case of no free colors

Message ID 1649867295-7204-1-git-send-email-quic_ramess@quicinc.com
Headers show
Series Disable BSS color collision detection in case of no free colors | expand

Message

Rameshkumar Sundaram April 13, 2022, 4:28 p.m. UTC
AP may run out of BSS color after color collision
detection event from driver.
Disable BSS color collision detection if no free colors are
available based on bss color disabled bit sent as a part of
NL80211_ATTR_HE_BSS_COLOR attribute sent in
NL80211_CMD_SET_BEACON.

Changes since v4:
 - Added new flag he_bss_color_valid to indicate presence
   of NL80211_ATTR_HE_BSS_COLOR
 - Split the changes into two patches.

Changes since v3:
 - Updated subject

Changes since v2:
 - Moved the logic to ieee80211_change_beacon() to have this
   BSS color enabled unset only during set_beacon case based
   on NL80211_ATTR_HE_BSS_COLOR attribute sent by hostapd.
 - Removed the relocation and parsing changes done on v1 and moved
   he_bss_color to cfg80211_beacon_data and parsed
   NL80211_ATTR_HE_BSS_COLOR in nl80211_parse_beacon()

Changes since v1:
 - Relocated ap params to cfg80211_beacon_data and
   nl80211_calculate_ap_params() to nl80211_parse_beacon()
   to have them parsed for all (start_ap and change beacon) commands.

Signed-off-by: Rameshkumar Sundaram <quic_ramess@quicinc.com>

Lavanya Suresh (1):
  mac80211: disable BSS color collision detection in case of no free
    colors

Rameshkumar Sundaram (1):
  nl80211: Parse NL80211_ATTR_HE_BSS_COLOR as a part of     
    nl80211_parse_beacon

 include/net/cfg80211.h |  7 ++++--
 net/mac80211/cfg.c     | 17 ++++++++++----
 net/wireless/nl80211.c | 64 +++++++++++++++++++++++++-------------------------
 3 files changed, 50 insertions(+), 38 deletions(-)