-
Notifications
You must be signed in to change notification settings - Fork 138
Changes for Wifi Radio Capability data to be populated in OneWifi #857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
source/webconfig/wifi_decoder.c
Outdated
| /* 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above.
source/webconfig/wifi_encoder.c
Outdated
| /* 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as above.
1c30071 to
4a0b14c
Compare
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>
4a0b14c to
56da623
Compare
| 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 */ |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
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.