mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacld-3.0: Print allowed channels for the 2nd STA vdev conn
Print channel list which is allowed for connection for the second STA when dual sta roaming in is enabled in wlan_cm_dual_sta_roam_update_connect_channels to enhance debug log. Change-Id: I4e16f101b60dc9d34d6193adcfe72ec173c5467a CRs-Fixed: 3000235
This commit is contained in:
parent
3c1f858f4f
commit
596c8819ac
1 changed files with 20 additions and 0 deletions
|
|
@ -358,6 +358,9 @@ wlan_cm_dual_sta_roam_update_connect_channels(struct wlan_objmgr_psoc *psoc,
|
|||
bool is_ch_allowed;
|
||||
struct wlan_mlme_psoc_ext_obj *mlme_obj;
|
||||
struct wlan_mlme_cfg *mlme_cfg;
|
||||
uint32_t buff_len;
|
||||
char *chan_buff;
|
||||
uint32_t len = 0;
|
||||
|
||||
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
||||
if (!mlme_obj)
|
||||
|
|
@ -376,6 +379,16 @@ wlan_cm_dual_sta_roam_update_connect_channels(struct wlan_objmgr_psoc *psoc,
|
|||
num_channels = mlme_cfg->reg.valid_channel_list_num;
|
||||
channel_list = mlme_cfg->reg.valid_channel_freq_list;
|
||||
|
||||
/*
|
||||
* Buffer of (num channl * 5) + 1 to consider the 4 char freq,
|
||||
* 1 space after it for each channel and 1 to end the string
|
||||
* with NULL.
|
||||
*/
|
||||
buff_len = (num_channels * 5) + 1;
|
||||
chan_buff = qdf_mem_malloc(buff_len);
|
||||
if (!chan_buff)
|
||||
return;
|
||||
|
||||
filter->num_of_channels = 0;
|
||||
for (i = 0; i < num_channels; i++) {
|
||||
is_ch_allowed =
|
||||
|
|
@ -387,7 +400,14 @@ wlan_cm_dual_sta_roam_update_connect_channels(struct wlan_objmgr_psoc *psoc,
|
|||
filter->chan_freq_list[filter->num_of_channels] =
|
||||
channel_list[i];
|
||||
filter->num_of_channels++;
|
||||
|
||||
len += qdf_scnprintf(chan_buff + len, buff_len - len,
|
||||
"%d ", channel_list[i]);
|
||||
}
|
||||
|
||||
if (filter->num_of_channels)
|
||||
mlme_debug("Freq list (%d): %s", filter->num_of_channels,
|
||||
chan_buff);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue