Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 60 additions & 10 deletions config/TR181-WiFi-USGv2.XML
Original file line number Diff line number Diff line change
Expand Up @@ -382,18 +382,25 @@
<functions>
<func_GetEntryCount>Device_GetEntryCount</func_GetEntryCount>
<func_GetEntry>Device_GetEntry</func_GetEntry>
<func_GetParamBoolValue>Device_GetParamBoolValue</func_GetParamBoolValue>
</functions>
<parameters>
<parameter>
<name>RadioNumberOfEntries</name>
<type>unsignedInt</type>
<syntax>uint32</syntax>
</parameter>
<parameter>
<name>APMLDNumberOfEntries</name>
<type>unsignedInt</type>
<syntax>uint32</syntax>
</parameter>
<parameter>
<name>RadioNumberOfEntries</name>
<type>unsignedInt</type>
<syntax>uint32</syntax>
</parameter>
<parameter>
<name>APMLDNumberOfEntries</name>
<type>unsignedInt</type>
<syntax>uint32</syntax>
</parameter>
<parameter>
<name>DFSEnable</name>
<type>boolean</type>
<syntax>bool</syntax>
<writable>false</writable>
</parameter>
</parameters>
<objects>
<object>
Expand Down Expand Up @@ -554,6 +561,49 @@
</object>
</objects>
</object>
<object>
<name>SSID</name>
<objectType>staticTable</objectType>
<maxInstance>128</maxInstance>
<functions>
<func_GetEntryCount>DataElements_SSID_GetEntryCount</func_GetEntryCount>
<func_GetEntry>DataElements_SSID_GetEntry</func_GetEntry>
<func_GetParamBoolValue>DataElements_SSID_GetParamBoolValue</func_GetParamBoolValue>
<func_GetParamStringValue>DataElements_SSID_GetParamStringValue</func_GetParamStringValue>
</functions>
<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)

<syntax>string</syntax>
<writable>true</writable>
</parameter>
<parameter>
<name>Enable</name>
<type>boolean</type>
<syntax>bool</syntax>
<writable>true</writable>
</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)

<syntax>string</syntax>
<writable>true</writable>
</parameter>
<parameter>
<name>HaulType</name>
<type>string(32)</type>
<syntax>string</syntax>
<writable>true</writable>
</parameter>
<!-- <parameter>
<name>MobilityDomain</name>
<type>string(32)</type>
<syntax>string</syntax>
<writable>true</writable>
</parameter> -->
</parameters>
</object>
</objects>
</object>
</objects>
Expand Down
104 changes: 104 additions & 0 deletions include/tr_181/ml/cosa_wifi_dml.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,38 @@
#ifndef _COSA_WIFI_DML_H
#define _COSA_WIFI_DML_H

/***********************************************************************

APIs for Object:

Device.WiFi.DataElements.Network.Device.{i}.Radio.{i}.

* Device_GetEntryCount
* Device_GetEntry
* Device_GetParamBoolValue

***********************************************************************/
ULONG
Device_GetEntryCount
(
ANSC_HANDLE hInsContext
);

ANSC_HANDLE
Device_GetEntry
(
ANSC_HANDLE hInsContext,
ULONG nIndex,
ULONG *pInsNumber
);

BOOL
Device_GetParamBoolValue
(
ANSC_HANDLE hInsContext,
char* ParamName,
BOOL* pBool
);

/***********************************************************************

Expand Down Expand Up @@ -288,6 +320,78 @@ STAMLD_Synchronize
ANSC_HANDLE hInsContext
);

/***********************************************************************

APIs for Object:

Device.WiFi.DataElements.Network.SSID.{i}.

* DataElements_SSID_GetEntryCount
* DataElements_SSID_GetEntry
* DataElements_SSID_GetParamBoolValue
* DataElements_SSID_GetParamStringValue

***********************************************************************/
ULONG
DataElements_SSID_GetEntryCount
(
ANSC_HANDLE hInsContext,
ULONG nIndex,
ULONG *pInsNumber
);

ANSC_HANDLE
DataElements_SSID_GetEntry
(
ANSC_HANDLE hInsContext,
ULONG nIndex,
ULONG *pInsNumber
);

ULONG
DataElements_SSID_GetParamStringValue
(
ANSC_HANDLE hInsContext,
char* ParamName,
char* pValue,
ULONG* pUlSize
);

BOOL
DataElements_SSID_GetParamBoolValue
(
ANSC_HANDLE hInsContext,
char* ParamName,
BOOL* pBool
);


/***********************************************************************

APIs for Object:

Device.WiFi.DataElements.Network.Device.{i}.bSTAMLD.bSTAMLDConfig.

* bSTAMLDConfig_GetParamBoolValue
* bSTAMLDConfig_SetParamBoolValue

***********************************************************************/
BOOL
bSTAMLDConfig_GetParamBoolValue
(
ANSC_HANDLE hInsContext,
char* ParamName,
BOOL* pBool
);

BOOL
bSTAMLDConfig_SetParamBoolValue
(
ANSC_HANDLE hInsContext,
char* ParamName,
BOOL bValue
);

/***********************************************************************

APIs for Object:
Expand Down
4 changes: 2 additions & 2 deletions include/wifi_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ extern "C" {
#define MAX_NUM_MLD_LINKS 15
#endif /*MAX_NUM_MLD_LINKS*/

#ifdef CONFIG_NO_MLD_ONLY_PRIVATE
//#ifdef CONFIG_NO_MLD_ONLY_PRIVATE
#define MLD_UNIT_COUNT 8
#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.



#define PLAN_ID_LENGTH 38
Expand Down
22 changes: 22 additions & 0 deletions source/dml/dml_webconfig/dml_onewifi_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2014,3 +2014,25 @@ bool wifi_factory_reset(bool factory_reset_all_vaps)
wifi_util_info_print(WIFI_DMCLI,"Exit %s:%d \n",__func__, __LINE__);
return TRUE;
}

ULONG get_num_fronthaul_vaps()
{
ULONG count = 0;
wifi_mgr_t *g_wifi_mgr = get_wifimgr_obj();

for (int i = 0; i < MAX_NUM_RADIOS; ++i)
{
wifi_vap_info_t *vaps = g_wifi_mgr->radio_config[i].vaps.vap_map.vap_array;

for (int j = 0; j < MAX_NUM_VAP_PER_RADIO; ++j)
{
wifi_vap_info_t *vap_info = &vaps[j];
if (!isVapSTAMesh(vap_info->vap_index))
{
++count;
}
}
}
return count;
}

Loading
Loading