Skip to content

Commit 6e32b15

Browse files
modules: hostap: remove set_btwt API
set_btwt API implementation is not complete. Remove the structure definition and implementation from the NXP WiFi driver to fix a build error. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 544b758 commit 6e32b15

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

drivers/wifi/nxp/nxp_wifi_drv.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,25 +1421,6 @@ static int nxp_wifi_set_twt(const struct device *dev, struct wifi_twt_params *pa
14211421
return ret;
14221422
}
14231423

1424-
static int nxp_wifi_set_btwt(const struct device *dev, struct wifi_twt_params *params)
1425-
{
1426-
wlan_btwt_config_t btwt_config;
1427-
int ret = -1;
1428-
1429-
btwt_config.action = 1;
1430-
btwt_config.sub_id = params->btwt.sub_id;
1431-
btwt_config.nominal_wake = params->btwt.nominal_wake;
1432-
btwt_config.max_sta_support = params->btwt.max_sta_support;
1433-
btwt_config.twt_mantissa = params->btwt.twt_interval;
1434-
btwt_config.twt_offset = params->btwt.twt_offset;
1435-
btwt_config.twt_exponent = params->btwt.twt_exponent;
1436-
btwt_config.sp_gap = params->btwt.sp_gap;
1437-
1438-
ret = wlan_set_btwt_cfg(&btwt_config);
1439-
1440-
return ret;
1441-
}
1442-
14431424
static void nxp_wifi_sta_init(struct net_if *iface)
14441425
{
14451426
const struct device *dev = net_if_get_device(iface);
@@ -1795,7 +1776,6 @@ static const struct wifi_mgmt_ops nxp_wifi_uap_mgmt = {
17951776
#endif
17961777
.set_power_save = nxp_wifi_power_save,
17971778
.get_power_save_config = nxp_wifi_get_power_save,
1798-
.set_btwt = nxp_wifi_set_btwt,
17991779
.ap_config_params = nxp_wifi_ap_config_params,
18001780
};
18011781

0 commit comments

Comments
 (0)