Skip to content

Commit 702221d

Browse files
Liam-qkkartben
authored andcommitted
drivers: wifi: nxp: Fix TWT setup issue.
When try to set twt, system will try to get interface status firstly. In shim driver, miss filling twt_capable field. The twt_capable is set as false by default. Failed to set twt because of incorrect twt_capable. Add enhance code to fill twt_capable field in shim driver. Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
1 parent 7900f8d commit 702221d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/wifi/nxp/nxp_wifi_drv.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,11 @@ static int nxp_wifi_status(const struct device *dev, struct wifi_iface_status *s
12331233
} else {
12341234
status->link_mode = WIFI_3;
12351235
}
1236-
1236+
#ifdef CONFIG_NXP_WIFI_11AX_TWT
1237+
status->twt_capable = nxp_wlan_network.twt_capab;
1238+
#else
1239+
status->twt_capable = false;
1240+
#endif
12371241
status->band = nxp_wlan_network.channel > 14 ? WIFI_FREQ_BAND_5_GHZ
12381242
: WIFI_FREQ_BAND_2_4_GHZ;
12391243
status->security = nxp_wifi_key_mgmt_to_zephyr(

0 commit comments

Comments
 (0)