-
Notifications
You must be signed in to change notification settings - Fork 86
RDKB-61018:Calculate and forward device angle and distance using Wi-F… #293
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
…i CSI data.
Reason for change: Implemented logic to trigger a CSI Netlink (NL) command to pull
data when a CSI callback is registered and CSI is enabled for any client.
Test Procedure: 1) Load the OneWifi image onto the BPI platform.
2) Enable the CSI feature.
3) Connect a client device.
4) Start CSI data collection for the connected client and verify that
the data is received in the registered callback.
Priority: P1
Risks: Low
Signed-off-by: [email protected]
| return RETURN_OK; | ||
| } | ||
|
|
||
| void *pick_link_elem_info(link_element_t *head, void *data, uint32_t data_len) |
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.
What is the intent of this function as it is comparing the data with head->data and if both are same, it is returning the data back
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.
Also I did not see the usage of this function.
|
|
||
| if (cur->data && (memcmp(cur->data, data, data_len) == 0)) { | ||
| free(cur->data); | ||
| *head = cur->next; |
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.
free(cur) should also be done.
| } | ||
| } | ||
|
|
||
| return RETURN_ERR; |
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.
should be return_OK right?
| __func__, __LINE__, radio_index); | ||
| for (uint32_t i = 0; i < ETH_ALEN; i++) { | ||
| wifi_hal_info_print("%x\n", mac[i]); | ||
| nla_put_u8(msg, i, mac[i]); |
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.
Each Mac byte is to be added one by one is it?
| } else { | ||
| for (i = 0; i < len; i++) { | ||
| fprintf(fpg, " %02x", buf[i]); | ||
| if ((i != 0) && (i % 16 == 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 do you need i != 0 check?
| { 2, 9, 0, 1, 1 }, | ||
| { 2, 9, 2, 100, 0 } | ||
| }; | ||
| uint8_t *p_str_mac = NULL; |
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.
indentation from here onwards looks incorrect
…i CSI data.
Reason for change: Implemented logic to trigger a CSI Netlink (NL) command to pull
data when a CSI callback is registered and CSI is enabled for any client.
Test Procedure: 1) Load the OneWifi image onto the BPI platform. 2) Enable the CSI feature.
3) Connect a client device.
4) Start CSI data collection for the connected client and verify that
the data is received in the registered callback.
Priority: P1
Risks: Low
Signed-off-by: [email protected]