Skip to content

Commit db271a7

Browse files
danieldegrassehenrikbrixandersen
authored andcommitted
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 <[email protected]>
1 parent 088e4c5 commit db271a7

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

drivers/wifi/nxp/nxp_wifi_drv.c

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -769,47 +769,6 @@ static int nxp_wifi_version(const struct device *dev, struct wifi_version *param
769769
return 0;
770770
}
771771

772-
static int nxp_wifi_ap_bandwidth(const struct device *dev, struct wifi_ap_params *params)
773-
{
774-
int status = NXP_WIFI_RET_SUCCESS;
775-
int ret = WM_SUCCESS;
776-
struct interface *if_handle = (struct interface *)dev->data;
777-
778-
if (if_handle->state.interface != WLAN_BSS_TYPE_UAP) {
779-
LOG_ERR("Wi-Fi not in uAP mode");
780-
return -EIO;
781-
}
782-
783-
if (s_nxp_wifi_State != NXP_WIFI_STARTED) {
784-
status = NXP_WIFI_RET_NOT_READY;
785-
}
786-
787-
if (status == NXP_WIFI_RET_SUCCESS) {
788-
789-
if (params->oper == WIFI_MGMT_SET) {
790-
791-
ret = wlan_uap_set_bandwidth(params->bandwidth);
792-
793-
if (ret != WM_SUCCESS) {
794-
status = NXP_WIFI_RET_FAIL;
795-
}
796-
} else {
797-
ret = wlan_uap_get_bandwidth(&params->bandwidth);
798-
799-
if (ret != WM_SUCCESS) {
800-
status = NXP_WIFI_RET_FAIL;
801-
}
802-
}
803-
}
804-
805-
if (status != NXP_WIFI_RET_SUCCESS) {
806-
LOG_ERR("Failed to get/set Wi-Fi AP bandwidth");
807-
return -EAGAIN;
808-
}
809-
810-
return 0;
811-
}
812-
813772
static int nxp_wifi_connect(const struct device *dev, struct wifi_connect_req_params *params)
814773
{
815774
int status = NXP_WIFI_RET_SUCCESS;
@@ -1758,7 +1717,6 @@ static const struct wifi_mgmt_ops nxp_wifi_sta_mgmt = {
17581717
.reg_domain = nxp_wifi_reg_domain,
17591718
#ifdef CONFIG_NXP_WIFI_SOFTAP_SUPPORT
17601719
.ap_enable = nxp_wifi_start_ap,
1761-
.ap_bandwidth = nxp_wifi_ap_bandwidth,
17621720
.ap_disable = nxp_wifi_stop_ap,
17631721
#endif
17641722
.iface_status = nxp_wifi_status,
@@ -1838,7 +1796,6 @@ static const struct wifi_mgmt_ops nxp_wifi_uap_mgmt = {
18381796
.set_power_save = nxp_wifi_power_save,
18391797
.get_power_save_config = nxp_wifi_get_power_save,
18401798
.set_btwt = nxp_wifi_set_btwt,
1841-
.ap_bandwidth = nxp_wifi_ap_bandwidth,
18421799
.ap_config_params = nxp_wifi_ap_config_params,
18431800
};
18441801

0 commit comments

Comments
 (0)