modules: hostap: remove ap_bandwidth API

ap_bandwidth 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 <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2024-10-18 15:39:00 -05:00 committed by Henrik Brix Andersen
parent 088e4c571c
commit db271a7392

View File

@ -769,47 +769,6 @@ static int nxp_wifi_version(const struct device *dev, struct wifi_version *param
return 0;
}
static int nxp_wifi_ap_bandwidth(const struct device *dev, struct wifi_ap_params *params)
{
int status = NXP_WIFI_RET_SUCCESS;
int ret = WM_SUCCESS;
struct interface *if_handle = (struct interface *)dev->data;
if (if_handle->state.interface != WLAN_BSS_TYPE_UAP) {
LOG_ERR("Wi-Fi not in uAP mode");
return -EIO;
}
if (s_nxp_wifi_State != NXP_WIFI_STARTED) {
status = NXP_WIFI_RET_NOT_READY;
}
if (status == NXP_WIFI_RET_SUCCESS) {
if (params->oper == WIFI_MGMT_SET) {
ret = wlan_uap_set_bandwidth(params->bandwidth);
if (ret != WM_SUCCESS) {
status = NXP_WIFI_RET_FAIL;
}
} else {
ret = wlan_uap_get_bandwidth(&params->bandwidth);
if (ret != WM_SUCCESS) {
status = NXP_WIFI_RET_FAIL;
}
}
}
if (status != NXP_WIFI_RET_SUCCESS) {
LOG_ERR("Failed to get/set Wi-Fi AP bandwidth");
return -EAGAIN;
}
return 0;
}
static int nxp_wifi_connect(const struct device *dev, struct wifi_connect_req_params *params)
{
int status = NXP_WIFI_RET_SUCCESS;
@ -1758,7 +1717,6 @@ static const struct wifi_mgmt_ops nxp_wifi_sta_mgmt = {
.reg_domain = nxp_wifi_reg_domain,
#ifdef CONFIG_NXP_WIFI_SOFTAP_SUPPORT
.ap_enable = nxp_wifi_start_ap,
.ap_bandwidth = nxp_wifi_ap_bandwidth,
.ap_disable = nxp_wifi_stop_ap,
#endif
.iface_status = nxp_wifi_status,
@ -1838,7 +1796,6 @@ static const struct wifi_mgmt_ops nxp_wifi_uap_mgmt = {
.set_power_save = nxp_wifi_power_save,
.get_power_save_config = nxp_wifi_get_power_save,
.set_btwt = nxp_wifi_set_btwt,
.ap_bandwidth = nxp_wifi_ap_bandwidth,
.ap_config_params = nxp_wifi_ap_config_params,
};