Skip to content

Commit

Permalink
[nrf fromtree] net: wifi: Add a message for unsolicited TWT tear down
Browse files Browse the repository at this point in the history
This is for TWT tear down by AP.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
(cherry picked from commit 8042218)
  • Loading branch information
krish2718 authored and rlubos committed Jun 27, 2023
1 parent 6e91290 commit e405279
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions subsys/net/l2/wifi/wifi_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@ static void handle_wifi_twt_event(struct net_mgmt_event_callback *cb)
const struct wifi_twt_params *resp =
(const struct wifi_twt_params *)cb->info;

if (resp->operation == WIFI_TWT_TEARDOWN) {
print(context.sh, SHELL_NORMAL, "TWT teardown received for flow ID %d\n",
resp->flow_id);
return;
}

if (resp->resp_status == WIFI_TWT_RESP_RECEIVED) {
print(context.sh, SHELL_NORMAL, "TWT response: %s\n",
wifi_twt_setup_cmd2str[resp->setup_cmd]);
Expand Down

0 comments on commit e405279

Please sign in to comment.