Skip to content

Conversation

@sriraaman-c
Copy link
Contributor

Reason for change: The OneWifi/Easymesh needs Radio Capabilities data which is missing. Hence implemented the method to pull the caps from Driver(Hostap) to OneWifi.

@github-actions github-actions bot added the community contribution Contributions from community. label Jan 27, 2026
/* Decode radio capabilities (WiFi6/WiFi7) from JSON */
webconfig_error_t decode_radio_capability(const cJSON *cap_obj, rdk_wifi_radio_capability_t *radio_cap)
{
#if 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this #if 0? How have you tested this functionality?

mac_address_t ruid,
webconfig_external_easymesh_t *proto)
{
#if 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above.

/* Encode radio capabilities (WiFi6/WiFi7) to JSON */
webconfig_error_t encode_radio_capability(const rdk_wifi_radio_capability_t *radio_cap, cJSON *radio_object)
{
#if 0
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment as above.

Reason for change: The OneWifi/Easymesh needs Radio Capabilities
data which is missing. Hence implemented the method to pull the
caps from Driver(Hostap) to OneWifi.

Signed-off-by: sriraaman-c <sriraaman33@gmail.com>
@sriraaman-c sriraaman-c marked this pull request as ready for review February 10, 2026 12:08
@sriraaman-c sriraaman-c requested a review from a team as a code owner February 10, 2026 12:08
UCHAR mac_cap[HE_MAX_MAC_CAPAB_SIZE]; /**< HE MAC capabilities (HE_MAX_MAC_CAPAB_SIZE = 4) */
UCHAR mcs_nss_set[HE_MAX_MCS_CAPAB_SIZE]; /**< HE MCS NSS set (HE_MAX_MCS_CAPAB_SIZE = 6) */
UCHAR ppet[HE_MAX_PPET_CAPAB_SIZE]; /**< HE PPE thresholds (HE_MAX_PPET_CAPAB_SIZE = 7) */
//USHORT 6ghz_capa; /**< HE 6GHz capabilities */
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this commented?

/* Populate radio capabilities from HAL */
wifi_freq_bands_t band;
if (convert_radio_index_to_freq_band(&wifi_hal_cap_obj->wifi_prop, radio_index, &band) == RETURN_OK) {
wifi_radio_capability_data_t *hal_cap_data = (wifi_radio_capability_data_t *)malloc(sizeof(wifi_radio_capability_data_t));
Copy link
Contributor

Choose a reason for hiding this comment

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

No need of this structure, this should be folded into wifi_radio_capabilities_t

rdk_wifi_vap_map_t vaps;
wifi_radio_feature_param_t feature;
radarInfo_t radarInfo;
rdk_wifi_radio_capability_t radio_capability;
Copy link
Contributor

Choose a reason for hiding this comment

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

where is this structure getting populated?

wifi_radio_capability_data_t *hal_cap_data = (wifi_radio_capability_data_t *)malloc(sizeof(wifi_radio_capability_data_t));
memset(&hal_cap_data, 0, sizeof(hal_cap_data));

if (wifi_getRadioCapabilityData(radio_index, band, hal_cap_data) == RETURN_OK) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of calling this new API, the hal_cap_data should be part of the wifi_radio_capabilities_t structure itself.

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

Labels

community contribution Contributions from community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants