Skip to content

Commit

Permalink
Handle NAN register callback in libwifihal
Browse files Browse the repository at this point in the history
NAN register callback was not handled in libwifihal, causing wlan0
interface down during NAN initialization. Because of that wifi is
turning off.

Handle the NAN register callback in libwifihal, now NAN initialization
success and wifi also working everytime.

Tests done:
1. Flash binary and launch as GVT-d
2. Check wifi on success
3. adb reboot
4. Check wifi on success
5. Validated steps 3,4 - 10 times

Tracked-On: OAM-121432
Signed-off-by: Gowtham Anandha Babu <[email protected]>
Signed-off-by: Bharat B Panda <[email protected]>
  • Loading branch information
gowthambabu92 authored and sysopenci committed Jun 28, 2024
1 parent deecca7 commit 431defb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/wifi_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,12 @@ wifi_error wifi_get_packet_filter_capabilities(
return WIFI_SUCCESS;
}

wifi_error wifi_nan_register_handler(wifi_interface_handle iface,
NanCallbackHandler handlers) {
//TODO: Send all vendor cmds for configuring NAN to driver.
return WIFI_SUCCESS;
}

wifi_error init_wifi_vendor_hal_func_table(wifi_hal_fn *hal_fn) {
if (hal_fn == NULL) {
return WIFI_ERROR_UNINITIALIZED;
Expand Down Expand Up @@ -606,5 +612,6 @@ wifi_error init_wifi_vendor_hal_func_table(wifi_hal_fn *hal_fn) {
hal_fn->wifi_reset_iface_event_handler = wifi_reset_iface_event_handler;
hal_fn->wifi_set_scanning_mac_oui = wifi_set_scanning_mac_oui;
hal_fn->wifi_get_packet_filter_capabilities = wifi_get_packet_filter_capabilities;
hal_fn->wifi_nan_register_handler = wifi_nan_register_handler;
return WIFI_SUCCESS;
}

0 comments on commit 431defb

Please sign in to comment.