@@ -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-
813772static 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