Skip to content

Add Device.WiFi.DataElements.Network.SSID subtree#3

Open
OlegGirniak wants to merge 1 commit intostanislavkuchar2:wfa-dataelements-7from
OlegGirniak:wfa-dataelements-7
Open

Add Device.WiFi.DataElements.Network.SSID subtree#3
OlegGirniak wants to merge 1 commit intostanislavkuchar2:wfa-dataelements-7from
OlegGirniak:wfa-dataelements-7

Conversation

@OlegGirniak
Copy link

No description provided.

return 1;
#else
return 0;
return 1; // should be 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this change

#else
#define MLD_UNIT_COUNT 1
#endif /* CONFIG_NO_MLD_ONLY_PRIVATE */
//#endif /* CONFIG_NO_MLD_ONLY_PRIVATE */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not forget to revert this change.

wifi_vap_info_t *vapInfo = NULL;

wifi_util_dbg_print(WIFI_DMCLI,"%s:%d: get_total_num_vap_dml():%d nIndex:%d\n",__func__, __LINE__, get_total_num_vap_dml(), nIndex);
if (nIndex >= 0 && nIndex <= (UINT)get_total_num_vap_dml())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DataElements_SSID_GetEntryCount uses and returns get_num_fronthaul_vaps(), but DataElements_SSID_GetEntry checks nIndex against get_total_num_vap_dml(). Those are different functions — inconsistent population logic.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more:
Using <= allows nIndex == get_total_num_vap_dml(), which is out of range if valid indices are 0..N-1.

<parameters>
<parameter>
<name>SSID</name>
<type>string(32)</type>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to standart string(:64)

</parameter>
<parameter>
<name>Band</name>
<type>string(32)</type>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 32?
Comma-separated list of strings. The band(s) (GHz) for which this SSID applies. Each list item is an enumeration of:

All (Applies to all bands)
2.4 (2.4 GHz band)
5 (The entire 5 GHz band)
6 (The entire 6 GHz band)
5_UNII_1 (5 GHz UNII-1 band, 5.15 to 5.25 GHz)
5_UNII_2 (5 GHz UNII-2 band, 5.25 to 5.725 GHz)
5_UNII_3 (5 GHz UNII-3 band, 5.725 to 5.85 GHz)
5_UNII_4 (5 GHz UNII-4 band, 5.85 to 5.925 GHz)
6_UNII_5 (6 GHz UNII-5 band, 5.925 to 6.425 GHz)
6_UNII_6 (6 GHz UNII-6 band, 6.425 to 6.525 GHz)
6_UNII_7 (6 GHz UNII-7 band, 6.525 to 6.875 GHz)
6_UNII_8 (6 GHz UNII-8 band, 6.875 to 7.125 GHz)
Sub_1GHz (Sub 1 GHz band, 800 MHz to 928 MHz, added in 2.19)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants