Skip to content
Open
Show file tree
Hide file tree
Changes from 9 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
52 changes: 50 additions & 2 deletions config/TR181-WiFi-USGv2.XML
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,55 @@
<writable>true</writable>
</parameter>
</parameters>
<objects>
<objects>
<object>
<name>TCM</name>
<objectType>object</objectType>

<functions>
<func_GetParamBoolValue>TCM_GetParamBoolValue</func_GetParamBoolValue>
<func_SetParamBoolValue>TCM_SetParamBoolValue</func_SetParamBoolValue>
</functions>

<parameters>
<parameter>
<name>Open2G</name>
<type>boolean</type>
<syntax>bool</syntax>
<writable>true</writable>
</parameter>
<parameter>
<name>Open5G</name>
<type>boolean</type>
<syntax>bool</syntax>
<writable>true</writable>
</parameter>
<parameter>
<name>Open6G</name>
<type>boolean</type>
<syntax>bool</syntax>
<writable>true</writable>
</parameter>
<parameter>
<name>Secure2G</name>
<type>boolean</type>
<syntax>bool</syntax>
<writable>true</writable>
</parameter>
<parameter>
<name>Secure5G</name>
<type>boolean</type>
<syntax>bool</syntax>
<writable>true</writable>
</parameter>
<parameter>
<name>Secure6G</name>
<type>boolean</type>
<syntax>bool</syntax>
<writable>true</writable>
</parameter>
</parameters>
</object>
<object>
<name>X_RDKCENTRAL-COM_GASConfig</name>
<objectType>dynamicTable</objectType>
Expand Down Expand Up @@ -3933,6 +3981,6 @@ INSTMSMT_PH2 -->
<writable>true</writable>
</parameter>
</parameters>
</object>
</object>
</objects>
</dataModelInfo>
54 changes: 54 additions & 0 deletions config/rdkb-wifi.ovsschema
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,60 @@
"max": 1
}
},
"tcm_open_2g_rfc": {
"type": {
"key": {
"type": "boolean"
},
"min": 0,
"max": 1
}
Comment thread
Sneha3821 marked this conversation as resolved.
},
"tcm_open_5g_rfc": {
"type": {
"key": {
"type": "boolean"
},
"min": 0,
"max": 1
}
},
"tcm_open_6g_rfc": {
"type": {
"key": {
"type": "boolean"
},
"min": 0,
"max": 1
}
},
"tcm_secure_2g_rfc": {
"type": {
"key": {
"type": "boolean"
},
"min": 0,
"max": 1
}
},
"tcm_secure_5g_rfc": {
"type": {
"key": {
"type": "boolean"
},
"min": 0,
"max": 1
}
},
"tcm_secure_6g_rfc": {
"type": {
"key": {
"type": "boolean"
},
"min": 0,
"max": 1
}
},
"wifi_offchannelscan_sm_rfc": {
"type": {
"key": {
Expand Down
6 changes: 6 additions & 0 deletions include/wifi_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,12 @@ typedef struct {
bool greylist_enabled_rfc;
bool cac_enabled_rfc;
bool tcm_enabled_rfc;
bool tcm_open_2g_rfc;
bool tcm_open_5g_rfc;
bool tcm_open_6g_rfc;
bool tcm_secure_2g_rfc;
bool tcm_secure_5g_rfc;
bool tcm_secure_6g_rfc;
bool wpa3_compatibility_enable;
bool memwraptool_app_rfc;
bool link_quality_rfc;
Expand Down
6 changes: 6 additions & 0 deletions include/wifi_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ typedef enum {
wifi_event_type_xfinity_rrm,
wifi_event_type_collect_stats,
wifi_event_type_tcm_rfc,
wifi_event_type_tcm_open_2g_rfc,
wifi_event_type_tcm_open_5g_rfc,
wifi_event_type_tcm_open_6g_rfc,
wifi_event_type_tcm_secure_2g_rfc,
wifi_event_type_tcm_secure_5g_rfc,
wifi_event_type_tcm_secure_6g_rfc,
Comment thread
Sneha3821 marked this conversation as resolved.
Comment thread
Sneha3821 marked this conversation as resolved.
wifi_event_type_send_action_frame,
wifi_event_type_start_channel_scan,
wifi_event_type_toggle_disconn_steady_state,
Expand Down
18 changes: 18 additions & 0 deletions lib/inc/schema_gen.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@
PJS_OVS_BOOL(wifi_offchannelscan_app_rfc) \
PJS_OVS_BOOL(wifi_offchannelscan_sm_rfc) \
PJS_OVS_BOOL(tcm_enabled_rfc) \
PJS_OVS_BOOL(tcm_open_2g_rfc) \
PJS_OVS_BOOL(tcm_open_5g_rfc) \
PJS_OVS_BOOL(tcm_open_6g_rfc) \
PJS_OVS_BOOL(tcm_secure_2g_rfc) \
PJS_OVS_BOOL(tcm_secure_5g_rfc) \
PJS_OVS_BOOL(tcm_secure_6g_rfc) \
PJS_OVS_BOOL(wpa3_compatibility_enable) \
PJS_OVS_BOOL(link_quality_rfc) \
PJS_OVS_BOOL(xfi_tel_enable_rfc) \
Expand Down Expand Up @@ -2159,6 +2165,12 @@
COLUMN(wifi_offchannelscan_app_rfc) \
COLUMN(wifi_offchannelscan_sm_rfc) \
COLUMN(tcm_enabled_rfc) \
COLUMN(tcm_open_2g_rfc) \
COLUMN(tcm_open_5g_rfc) \
COLUMN(tcm_open_6g_rfc) \
COLUMN(tcm_secure_2g_rfc) \
COLUMN(tcm_secure_5g_rfc) \
COLUMN(tcm_secure_6g_rfc) \
COLUMN(wpa3_compatibility_enable) \
COLUMN(link_quality_rfc) \
COLUMN(xfi_tel_enable_rfc) \
Expand Down Expand Up @@ -3533,6 +3545,12 @@
#define SCHEMA__Wifi_Rfc_Config__wifi_offchannelscan_sm_rfc "wifi_offchannelscan_sm_rfc"
#define SCHEMA__Wifi_Rfc_Config__Levl_rfc "levl_enabled_rfc"
#define SCHEMA__Wifi_Rfc_Config__tcm_enabled_rfc "tcm_enabled_rfc"
#define SCHEMA__Wifi_Rfc_Config__tcm_open_2g_rfc "tcm_open_2g_rfc"
#define SCHEMA__Wifi_Rfc_Config__tcm_open_5g_rfc "tcm_open_5g_rfc"
#define SCHEMA__Wifi_Rfc_Config__tcm_open_6g_rfc "tcm_open_6g_rfc"
#define SCHEMA__Wifi_Rfc_Config__tcm_secure_2g_rfc "tcm_secure_2g_rfc"
#define SCHEMA__Wifi_Rfc_Config__tcm_secure_5g_rfc "tcm_secure_5g_rfc"
#define SCHEMA__Wifi_Rfc_Config__tcm_secure_6g_rfc "tcm_secure_6g_rfc"
#define SCHEMA__Wifi_Rfc_Config__wpa3_compatibility_enable "wpa3_compatibility_enable"
#define SCHEMA__Wifi_Rfc_Config__link_quality_rfc "link_quality_rfc"
#define SCHEMA__Wifi_Rfc_Config__xfi_tel_enable_rfc "xfi_tel_enable_rfc"
Expand Down
12 changes: 12 additions & 0 deletions source/core/wifi_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2865,6 +2865,18 @@ wifi_rfc_dml_parameters_t *get_ctrl_rfc_parameters(void)
g_wifi_mgr->rfc_dml_parameters.wifi_offchannelscan_sm_rfc;
g_wifi_mgr->ctrl.rfc_params.tcm_enabled_rfc =
g_wifi_mgr->rfc_dml_parameters.tcm_enabled_rfc;
g_wifi_mgr->ctrl.rfc_params.tcm_open_2g_rfc =
g_wifi_mgr->rfc_dml_parameters.tcm_open_2g_rfc;
g_wifi_mgr->ctrl.rfc_params.tcm_open_5g_rfc =
g_wifi_mgr->rfc_dml_parameters.tcm_open_5g_rfc;
g_wifi_mgr->ctrl.rfc_params.tcm_open_6g_rfc =
g_wifi_mgr->rfc_dml_parameters.tcm_open_6g_rfc;
g_wifi_mgr->ctrl.rfc_params.tcm_secure_2g_rfc =
g_wifi_mgr->rfc_dml_parameters.tcm_secure_2g_rfc;
g_wifi_mgr->ctrl.rfc_params.tcm_secure_5g_rfc =
g_wifi_mgr->rfc_dml_parameters.tcm_secure_5g_rfc;
g_wifi_mgr->ctrl.rfc_params.tcm_secure_6g_rfc =
g_wifi_mgr->rfc_dml_parameters.tcm_secure_6g_rfc;
g_wifi_mgr->ctrl.rfc_params.wpa3_compatibility_enable =
g_wifi_mgr->rfc_dml_parameters.wpa3_compatibility_enable;
g_wifi_mgr->ctrl.rfc_params.link_quality_rfc =
Expand Down
72 changes: 72 additions & 0 deletions source/core/wifi_ctrl_queue_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -2864,6 +2864,54 @@ void process_tcm_rfc(bool type)
type);
}

void process_tcm_open_2g_rfc(bool type)
{
wifi_util_dbg_print(WIFI_DB, "Enter func %s: %d : Tcm Open2G RFC: %d\n", __FUNCTION__, __LINE__, type);
wifi_rfc_dml_parameters_t *rfc_param = (wifi_rfc_dml_parameters_t *)get_ctrl_rfc_parameters();
rfc_param->tcm_open_2g_rfc = type;
get_wifidb_obj()->desc.update_rfc_config_fn(0, rfc_param);
}

void process_tcm_open_5g_rfc(bool type)
{
wifi_util_dbg_print(WIFI_DB, "Enter func %s: %d : Tcm Open5G RFC: %d\n", __FUNCTION__, __LINE__, type);
wifi_rfc_dml_parameters_t *rfc_param = (wifi_rfc_dml_parameters_t *)get_ctrl_rfc_parameters();
rfc_param->tcm_open_5g_rfc = type;
get_wifidb_obj()->desc.update_rfc_config_fn(0, rfc_param);
}

void process_tcm_open_6g_rfc(bool type)
{
wifi_util_dbg_print(WIFI_DB, "Enter func %s: %d : Tcm Open6G RFC: %d\n", __FUNCTION__, __LINE__, type);
wifi_rfc_dml_parameters_t *rfc_param = (wifi_rfc_dml_parameters_t *)get_ctrl_rfc_parameters();
rfc_param->tcm_open_6g_rfc = type;
get_wifidb_obj()->desc.update_rfc_config_fn(0, rfc_param);
}

void process_tcm_secure_2g_rfc(bool type)
{
wifi_util_dbg_print(WIFI_DB, "Enter func %s: %d : Tcm Secure2G RFC: %d\n", __FUNCTION__, __LINE__, type);
wifi_rfc_dml_parameters_t *rfc_param = (wifi_rfc_dml_parameters_t *)get_ctrl_rfc_parameters();
rfc_param->tcm_secure_2g_rfc = type;
get_wifidb_obj()->desc.update_rfc_config_fn(0, rfc_param);
}

void process_tcm_secure_5g_rfc(bool type)
{
wifi_util_dbg_print(WIFI_DB, "Enter func %s: %d : Tcm Secure5G RFC: %d\n", __FUNCTION__, __LINE__, type);
wifi_rfc_dml_parameters_t *rfc_param = (wifi_rfc_dml_parameters_t *)get_ctrl_rfc_parameters();
rfc_param->tcm_secure_5g_rfc = type;
get_wifidb_obj()->desc.update_rfc_config_fn(0, rfc_param);
}

void process_tcm_secure_6g_rfc(bool type)
{
wifi_util_dbg_print(WIFI_DB, "Enter func %s: %d : Tcm Secure6G RFC: %d\n", __FUNCTION__, __LINE__, type);
wifi_rfc_dml_parameters_t *rfc_param = (wifi_rfc_dml_parameters_t *)get_ctrl_rfc_parameters();
rfc_param->tcm_secure_6g_rfc = type;
get_wifidb_obj()->desc.update_rfc_config_fn(0, rfc_param);
}

void process_xfi_tel_enable_rfc(bool type)
{
wifi_util_dbg_print(WIFI_DB, "Enter func %s: %d : Xfi Tel Enable RFC: %d\n", __FUNCTION__, __LINE__,
Expand Down Expand Up @@ -4089,6 +4137,30 @@ void handle_command_event(wifi_ctrl_t *ctrl, void *data, unsigned int len,
process_tcm_rfc(*(bool *)data);
break;

case wifi_event_type_tcm_open_2g_rfc:
process_tcm_open_2g_rfc(*(bool *)data);
break;

case wifi_event_type_tcm_open_5g_rfc:
process_tcm_open_5g_rfc(*(bool *)data);
break;

case wifi_event_type_tcm_open_6g_rfc:
process_tcm_open_6g_rfc(*(bool *)data);
break;

case wifi_event_type_tcm_secure_2g_rfc:
process_tcm_secure_2g_rfc(*(bool *)data);
break;

case wifi_event_type_tcm_secure_5g_rfc:
process_tcm_secure_5g_rfc(*(bool *)data);
break;

case wifi_event_type_tcm_secure_6g_rfc:
process_tcm_secure_6g_rfc(*(bool *)data);
break;

case wifi_event_type_trigger_disconnection:
process_sta_trigger_disconnection(*(unsigned int *)data);
break;
Expand Down
Loading
Loading