Add QCA vendor command to indicate STA MLD setup links removal

Add a new vendor command and attributes to indicate STA MLD setup links
removal.

Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
This commit is contained in:
Shivani Baranwal 2023-05-03 09:29:32 +05:30 committed by Jouni Malinen
parent 527cf095fe
commit 57386a647a

View file

@ -925,6 +925,17 @@ enum qca_radiotap_vendor_ids {
* Note that the attribute * Note that the attribute
* %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
* the current connected AP MLD address. * the current connected AP MLD address.
*
* @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
* of STA MLD setup links due to the AP MLD removing the corresponding
* affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
* links are removed during Multi-Link reconfiguration, the driver shall
* use %NL80211_CMD_DISCONNECT instead of this command since it is a
* connection drop. The attributes used with this command are defined in
* enum qca_wlan_vendor_attr_link_reconfig.
* Note that the attribute
* %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
* the current connected AP MLD address.
*/ */
enum qca_nl80211_vendor_subcmds { enum qca_nl80211_vendor_subcmds {
QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
@ -1138,6 +1149,7 @@ enum qca_nl80211_vendor_subcmds {
QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227, QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228, QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229, QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
}; };
/* Compatibility defines for previously used subcmd names. /* Compatibility defines for previously used subcmd names.
@ -15532,4 +15544,26 @@ enum qca_wlan_vendor_attr_tid_to_link_map {
QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1, QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
}; };
/**
* enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
* with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
*
* @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
* 6-byte AP MLD address of the AP which indicated the link reconfiguration.
*
* @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
* A bitmap of the removed setup links link IDs.
*/
enum qca_wlan_vendor_attr_link_reconfig {
QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
/* keep last */
QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1
};
#endif /* QCA_VENDOR_H */ #endif /* QCA_VENDOR_H */