qcacmn: Add per VDEV dot11 mode in VDEV MLME proto struct

To check the allowed dot11 mode of the VDEV, add new member to
struct vdev_mlme_proto hold this value.

Change-Id: I5bfbff0ab3056013a997744b8e9ce0b4d0a3d43b
CRs-Fixed: 3314403
This commit is contained in:
Vinod Kumar Pirla
2022-10-17 02:56:28 -07:00
committed by Madan Koyyalamudi
parent 238df32c0b
commit f6a2b48634
4 changed files with 30 additions and 4 deletions

View File

@@ -288,9 +288,26 @@ struct vdev_mlme_eht_ops_info {
};
#endif
/**
* enum mlme_vdev_dot11_mode - Dot11 mode of the vdev
* MLME_VDEV_DOT11_MODE_AUTO: vdev uses mlme_dot11_mode
* MLME_VDEV_DOT11_MODE_11N: vdev supports 11N mode
* MLME_VDEV_DOT11_MODE_11AC: vdev supports 11AC mode
* MLME_VDEV_DOT11_MODE_11AX: vdev supports 11AX mode
* MLME_VDEV_DOT11_MODE_11BE: vdev supports 11BE mode
*/
enum mlme_vdev_dot11_mode {
MLME_VDEV_DOT11_MODE_AUTO,
MLME_VDEV_DOT11_MODE_11N,
MLME_VDEV_DOT11_MODE_11AC,
MLME_VDEV_DOT11_MODE_11AX,
MLME_VDEV_DOT11_MODE_11BE,
};
/**
* struct vdev_mlme_he_ops_info - vdev protocol structure holding information
* that is used in frames
* @vdev_dot11_mode: supported dot11 mode
* @generic: generic protocol information
* @ap: ap specific protocol information
* @sta: sta specific protocol information
@@ -302,6 +319,7 @@ struct vdev_mlme_eht_ops_info {
* @bss_color: 11ax HE BSS Color information
*/
struct vdev_mlme_proto {
enum mlme_vdev_dot11_mode vdev_dot11_mode;
struct vdev_mlme_proto_generic generic;
struct vdev_mlme_proto_ap ap;
struct vdev_mlme_proto_sta sta;