qcacld-3.0: Add 320MHz support in connection info

Add 320MHz support in cm so that connection info can reflect
correct 11BE 320MHz bandwidth.

Change-Id: I44772472bf9e64af0e47ad71ca7d29d1ff90daed
CRs-Fixed: 3009311
此提交包含在:
Jia Ding
2021-04-01 12:41:14 +08:00
提交者 Madan Koyyalamudi
父節點 a125cdf1e2
當前提交 94054464bf

查看文件

@@ -287,21 +287,6 @@ error:
}
#ifdef FEATURE_WLAN_DIAG_SUPPORT_CSR
static const char *cm_diag_get_ch_width_str(uint8_t ch_width)
{
switch (ch_width) {
CASE_RETURN_STRING(BW_20MHZ);
CASE_RETURN_STRING(BW_40MHZ);
CASE_RETURN_STRING(BW_80MHZ);
CASE_RETURN_STRING(BW_160MHZ);
CASE_RETURN_STRING(BW_80P80MHZ);
CASE_RETURN_STRING(BW_5MHZ);
CASE_RETURN_STRING(BW_10MHZ);
default:
return "Unknown";
}
}
#ifdef WLAN_FEATURE_11BE
static const
char *cm_diag_get_eht_dot11_mode_str(enum mgmt_dot11_mode dot11mode)
@@ -314,14 +299,43 @@ char *cm_diag_get_eht_dot11_mode_str(enum mgmt_dot11_mode dot11mode)
return "Unknown";
}
}
static const char *cm_diag_get_320_ch_width_str(uint8_t ch_width)
{
switch (ch_width) {
CASE_RETURN_STRING(BW_320MHZ);
default:
return "Unknown";
}
}
#else
static const
char *cm_diag_get_eht_dot11_mode_str(enum mgmt_dot11_mode dot11mode)
{
return "Unknown";
}
static const char *cm_diag_get_320_ch_width_str(uint8_t ch_width)
{
return "Unknown";
}
#endif
static const char *cm_diag_get_ch_width_str(uint8_t ch_width)
{
switch (ch_width) {
CASE_RETURN_STRING(BW_20MHZ);
CASE_RETURN_STRING(BW_40MHZ);
CASE_RETURN_STRING(BW_80MHZ);
CASE_RETURN_STRING(BW_160MHZ);
CASE_RETURN_STRING(BW_80P80MHZ);
CASE_RETURN_STRING(BW_5MHZ);
CASE_RETURN_STRING(BW_10MHZ);
default:
return cm_diag_get_320_ch_width_str(ch_width);
}
}
static const char *cm_diag_get_dot11_mode_str(enum mgmt_dot11_mode dot11mode)
{
switch (dot11mode) {
@@ -428,12 +442,27 @@ cm_diag_eht_dot11_mode_from_phy_mode(enum wlan_phymode phymode)
else
return DOT11_MODE_MAX;
}
static enum mgmt_ch_width
cm_get_diag_eht_320_ch_width(enum phy_ch_width ch_width)
{
if (ch_width == CH_WIDTH_320MHZ)
return BW_320MHZ;
else
return BW_MAX;
}
#else
static enum mgmt_dot11_mode
cm_diag_eht_dot11_mode_from_phy_mode(enum wlan_phymode phymode)
{
return DOT11_MODE_MAX;
}
static enum mgmt_ch_width
cm_get_diag_eht_320_ch_width(enum phy_ch_width ch_width)
{
return BW_MAX;
}
#endif
static enum mgmt_dot11_mode
@@ -480,7 +509,7 @@ static enum mgmt_ch_width cm_get_diag_ch_width(enum phy_ch_width ch_width)
case CH_WIDTH_10MHZ:
return BW_10MHZ;
default:
return BW_MAX;
return cm_get_diag_eht_320_ch_width(ch_width);
}
}