Lines Matching refs:ifp
59 static void *whd_handle_apsta_event(whd_interface_t ifp, const whd_event_header_t *event_header,
89 whd_result_t whd_wifi_set_block_ack_window_size_common(whd_interface_t ifp, uint16_t ap_win_size, u… in whd_wifi_set_block_ack_window_size_common() argument
95 if (ifp->role == WHD_AP_ROLE) in whd_wifi_set_block_ack_window_size_common()
100 if (ifp->role == WHD_STA_ROLE) in whd_wifi_set_block_ack_window_size_common()
105 …retval = whd_wifi_set_iovar_value(ifp, IOVAR_STR_AMPDU_BA_WINDOW_SIZE, ( uint32_t )block_ack_windo… in whd_wifi_set_block_ack_window_size_common()
112 whd_result_t whd_wifi_set_ampdu_parameters_common(whd_interface_t ifp, uint8_t ba_window_size, int8… in whd_wifi_set_ampdu_parameters_common() argument
115 CHECK_RETURN(whd_wifi_set_iovar_value(ifp, IOVAR_STR_AMPDU_BA_WINDOW_SIZE, ba_window_size) ); in whd_wifi_set_ampdu_parameters_common()
118 CHECK_RETURN(whd_wifi_set_iovar_value(ifp, IOVAR_STR_AMPDU_MPDU, ( uint32_t )ampdu_mpdu) ); in whd_wifi_set_ampdu_parameters_common()
122 CHECK_RETURN(whd_wifi_set_iovar_value(ifp, IOVAR_STR_AMPDU_RX_FACTOR, rx_factor) ); in whd_wifi_set_ampdu_parameters_common()
130 whd_result_t whd_wifi_set_ampdu_parameters(whd_interface_t ifp) in whd_wifi_set_ampdu_parameters() argument
132 whd_driver_t whd_driver = ifp->whd_driver; in whd_wifi_set_ampdu_parameters()
138 … return whd_wifi_set_ampdu_parameters_common(ifp, AMPDU_STA_DEFAULT_BA_WSIZE, AMPDU_MPDU_AUTO, in whd_wifi_set_ampdu_parameters()
143 … return whd_wifi_set_ampdu_parameters_common(ifp, AMPDU_STA_DEFAULT_BA_WSIZE, AMPDU_MPDU_AUTO, in whd_wifi_set_ampdu_parameters()
148 …return whd_wifi_set_ampdu_parameters_common(ifp, AMPDU_STA_DEFAULT_BA_WSIZE, AMPDU_STA_DEFAULT_MPD… in whd_wifi_set_ampdu_parameters()
154 static void *whd_handle_apsta_event(whd_interface_t ifp, const whd_event_header_t *event_header, in whd_handle_apsta_event() argument
157 whd_driver_t whd_driver = ifp->whd_driver; in whd_handle_apsta_event()
181 uint32_t whd_wifi_init_ap(whd_interface_t ifp, whd_ssid_t *ssid, whd_security_t auth_type, in whd_wifi_init_ap() argument
198 CHECK_IFP_NULL(ifp); in whd_wifi_init_ap()
200 whd_driver = ifp->whd_driver; in whd_wifi_init_ap()
237 if (ifp == prim_ifp) in whd_wifi_init_ap()
243 result = whd_cdc_send_iovar(ifp, CDC_SET, buffer, 0); in whd_wifi_init_ap()
252 bss_index = ifp->bsscfgidx; in whd_wifi_init_ap()
254 ifp->role = WHD_AP_ROLE; in whd_wifi_init_ap()
286 if (whd_cdc_send_iovar(ifp, CDC_GET, buffer, &response) != WHD_SUCCESS) in whd_wifi_init_ap()
339 …CHECK_RETURN_WITH_SEMAPHORE(whd_management_set_event_handler(ifp, apsta_events, whd_handle_apsta_e… in whd_wifi_init_ap()
347 ifp->event_reg_list[WHD_AP_EVENT_ENTRY] = event_entry; in whd_wifi_init_ap()
356 if (prim_ifp == ifp) in whd_wifi_init_ap()
362 CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_ioctl(ifp, CDC_SET, WLC_SET_AP, buffer, 0), in whd_wifi_init_ap()
366 if (NULL_MAC(ifp->mac_addr.octet) ) in whd_wifi_init_ap()
369 if ( (result = whd_wifi_get_mac_address(prim_ifp, &ifp->mac_addr) ) != WHD_SUCCESS ) in whd_wifi_init_ap()
380 if ( (result = whd_wifi_set_mac_address(ifp, ifp->mac_addr) ) != WHD_SUCCESS ) in whd_wifi_init_ap()
401 …CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_iovar(ifp, CDC_SET, buffer, 0), &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
412 CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_ioctl(ifp, CDC_SET, WLC_SET_CHANNEL, buffer, 0), in whd_wifi_init_ap()
443 CHECK_RETURN(whd_wifi_set_iovar_value(ifp, IOVAR_STR_MFP, auth_mfp) ); in whd_wifi_init_ap()
468 … CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_ioctl(ifp, CDC_SET, WLC_SET_WSEC_PMK, buffer, 0), in whd_wifi_init_ap()
505 …CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_iovar(ifp, CDC_SET, buffer, 0), &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
514 whd_wifi_sae_password(ifp, security_key, key_length); in whd_wifi_init_ap()
521 whd_wifi_sae_password(ifp, security_key, key_length); in whd_wifi_init_ap()
531 … CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_ioctl(ifp, CDC_SET, WLC_SET_WSEC_PMK, buffer, in whd_wifi_init_ap()
543 if (whd_cdc_send_iovar(ifp, CDC_SET, buffer, NULL) != WHD_SUCCESS) in whd_wifi_init_ap()
555 result = whd_cdc_send_iovar(ifp, CDC_SET, buffer, NULL); in whd_wifi_init_ap()
560 …CHECK_RETURN_WITH_SEMAPHORE(whd_cdc_send_iovar(ifp, CDC_SET, buffer, NULL), &ap->whd_wifi_sleep_fl… in whd_wifi_init_ap()
566 uint32_t whd_wifi_start_ap(whd_interface_t ifp) in whd_wifi_start_ap() argument
574 CHECK_IFP_NULL(ifp); in whd_wifi_start_ap()
576 whd_driver = ifp->whd_driver; in whd_wifi_start_ap()
591 data[0] = htod32(ifp->bsscfgidx); in whd_wifi_start_ap()
604 uint32_t whd_wifi_stop_ap(whd_interface_t ifp) in whd_wifi_stop_ap() argument
615 CHECK_IFP_NULL(ifp); in whd_wifi_stop_ap()
617 whd_driver = ifp->whd_driver; in whd_wifi_stop_ap()
635 *data = ifp->bsscfgidx; in whd_wifi_stop_ap()
663 data[0] = htod32(ifp->bsscfgidx); in whd_wifi_stop_ap()
676 if (prim_ifp == ifp) in whd_wifi_stop_ap()
681 CHECK_RETURN(whd_cdc_send_ioctl(ifp, CDC_SET, WLC_SET_AP, buffer, 0) ); in whd_wifi_stop_ap()
709 CHECK_RETURN(whd_wifi_deregister_event_handler(ifp, ifp->event_reg_list[WHD_AP_EVENT_ENTRY]) ); in whd_wifi_stop_ap()
710 ifp->event_reg_list[WHD_AP_EVENT_ENTRY] = WHD_EVENT_NOT_REGISTERED; in whd_wifi_stop_ap()
713 ifp->role = WHD_INVALID_ROLE; in whd_wifi_stop_ap()