/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/ |
H A D | hmac_rx_filter.c | 56 if ((mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) && (mac_vap->vap_state == MAC_VAP_STATE_UP)) { in hmac_find_is_sta_up() 80 if ((mac_vap->vap_state != MAC_VAP_STATE_INIT) && (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP)) { in hmac_find_is_ap_up() 84 if ((mac_vap->vap_state != MAC_VAP_STATE_INIT) && (mac_vap->vap_mode == WLAN_VAP_MODE_MESH)) { in hmac_find_is_ap_up() 106 if (vap->vap_mode == WLAN_VAP_MODE_BSS_AP) { in hmac_find_is_ap() 110 if (vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_find_is_ap() 138 if ((mac_vap->vap_state != MAC_VAP_STATE_INIT) && ((mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP) in hmac_calc_up_vap_num() 140 || (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) in hmac_calc_up_vap_num() 144 } else if ((mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) && (mac_vap->vap_state == MAC_VAP_STATE_UP)) { in hmac_calc_up_vap_num() 188 if (mac_vap->vap_mode == WLAN_VAP_MODE_CONFIG) { in hmac_get_single_vap_rx_filter() 190 } else if (mac_vap->vap_mode in hmac_get_single_vap_rx_filter() [all...] |
H A D | hmac_vap.c | 137 switch (param->vap_mode) { in hmac_vap_mesh_ap_sta_init() 175 oam_warning_log1(hmac_vap->base_vap->vap_id, OAM_SF_ANY, "{hmac_vap_init::mod Err=%d.}", param->vap_mode); in hmac_vap_mesh_ap_sta_init() 393 if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_AP in hmac_vap_destroy() 395 || (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) in hmac_vap_destroy() 400 } else if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_vap_destroy() 418 del_vap_param.vap_mode = hmac_vap->base_vap->vap_mode; in hmac_vap_destroy() 799 switch (hmac_vap->base_vap->vap_mode) { in hmac_handle_disconnect_rsp() 848 if ((mac_vap_value->vap_mode != WLAN_VAP_MODE_BSS_AP) in hmac_tx_get_mac_vap() 850 && (mac_vap_value->vap_mode ! in hmac_tx_get_mac_vap() [all...] |
H A D | hmac_encap_frame.c | 240 if ((mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) && in hmac_mgmt_encap_deauth() 316 if (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_mgmt_encap_disassoc() 324 mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP ? mac_vap->mib_info->wlan_mib_sta_config.auc_dot11_station_id : in hmac_mgmt_encap_disassoc() 332 mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP ? in hmac_mgmt_encap_disassoc()
|
H A D | hmac_fsm.c | 66 if ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) && in hmac_fsm_change_state() 79 if ((vap_state == MAC_VAP_STATE_STA_FAKE_UP) && (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_STA)) { in hmac_fsm_change_state()
|
H A D | hmac_mgmt_classifier.c | 217 if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_AP in hmac_rx_vap_state_proc() 219 || (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) in hmac_rx_vap_state_proc() 223 } else if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_rx_vap_state_proc() 345 if (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_mgmt_send_disasoc_deauth_event_frame() 425 if ((mac_vap->vap_mode == WLAN_VAP_MODE_MESH) && (hmac_user->base_user->is_mesh_user == HI_TRUE)) { in hmac_mgmt_send_disasoc_deauth_event() 440 if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP) { in hmac_mgmt_send_disasoc_deauth_event()
|
H A D | hmac_tx_data.c | 239 } else if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_tx_classify_ipv6_data() 747 if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_tx_is_need_frag() 1028 if ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_AP) && (!(tx_ctl->use_4_addr))) { in hmac_tx_set_addresses() 1031 } else if ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) && (!(tx_ctl->use_4_addr))) { in hmac_tx_set_addresses() 1034 } else if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_tx_set_addresses() 1332 if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_AP in hmac_tx_lan_to_wlan_no_tcp_opt_vap() 1334 || (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) in hmac_tx_lan_to_wlan_no_tcp_opt_vap() 1344 } else if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_tx_lan_to_wlan_no_tcp_opt_vap() 1383 if (mac_vap->vap_mode != WLAN_VAP_MODE_BSS_AP && mac_vap->vap_mode ! in hmac_tx_lan_to_wlan_no_tcp_opt_vap_mode() [all...] |
H A D | hmac_scan.c | 205 if ((is_legacy_vap(mac_vap) && (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA)) && in hmac_is_connected_ap_bssid() 989 if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_scan_update_bss_base() 1004 if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_scan_update_bss_base() 1276 if ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) && in hmac_scan_proc_scanned_bss() 1309 if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_scan_proc_scan_comp_event_vap() 1319 if (((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_AP) || in hmac_scan_proc_scan_comp_event_vap() 1320 (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH)) && in hmac_scan_proc_scan_comp_event_vap() 1377 if ((hmac_vap->base_vap->support_any == HI_TRUE) && (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) && in hmac_scan_proc_scan_comp_event() 1508 wlan_vap_mode_enum_uint8 vap_mode; in hmac_scan_update_scan_params() local 1521 vap_mode in hmac_scan_update_scan_params() [all...] |
H A D | hmac_config.c | 242 if (mac_vap->vap_mode == WLAN_VAP_MODE_CONFIG) { in hmac_config_vap_info() 253 mac_vap->vap_mode, mac_vap->p2p_mode); in hmac_config_vap_info() 256 if ((mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) && (mac_user != HI_NULL)) { in hmac_config_vap_info() 259 } else if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP in hmac_config_vap_info() 261 || (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) in hmac_config_vap_info() 802 if ((param->vap_mode == WLAN_VAP_MODE_BSS_AP) in hmac_config_normal_check_vap_num() 804 || (param->vap_mode == WLAN_VAP_MODE_MESH) in hmac_config_normal_check_vap_num() 813 } else if (param->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_config_normal_check_vap_num() 889 if (vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_config_set_pm_switch() 968 if (param->vap_mode in hmac_config_init_hmac_vap() [all...] |
H A D | hmac_protection.c | 247 if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP in hmac_protection_del_user() 249 || (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) in hmac_protection_del_user()
|
H A D | hmac_user.c | 348 if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_user_del_wapi_sta_mesh_proc() 355 if (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_user_del_wapi_sta_mesh_proc() 518 if (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_user_add_check() 520 } else if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP) { in hmac_user_add_check() 583 if (mac_vap->vap_mode != WLAN_VAP_MODE_MESH) { in hmac_user_init_proc()
|
H A D | hmac_uapsd.c | 58 if (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_config_set_uapsden()
|
H A D | hmac_device.c | 146 param.vap_mode = WLAN_VAP_MODE_CONFIG; in hmac_cfg_vap_init()
|
H A D | hmac_edca_opt.c | 201 if ((hmac_vap->edca_opt_flag_ap != HI_TRUE) || (hmac_vap->base_vap->vap_mode != WLAN_VAP_MODE_BSS_AP)) { in hmac_edca_opt_tx_pkts_stat()
|
H A D | hmac_p2p.c | 231 if (mac_vap != HI_NULL && (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP in hmac_p2p_check_vap_num() 233 || mac_vap->vap_mode == WLAN_VAP_MODE_MESH in hmac_p2p_check_vap_num() 350 if (param->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_p2p_add_gc_vap() 366 oam_info_log3(0, OAM_SF_P2P, "{hmac_p2p_add_gc_vap::func out.vap_mode[%d], p2p_mode[%d}, vap_id[%d]", in hmac_p2p_add_gc_vap() 367 param->vap_mode, param->p2p_mode, param->vap_id); in hmac_p2p_add_gc_vap() 440 oam_info_log2(mac_vap->vap_id, OAM_SF_P2P, "{hmac_p2p_del_gc_vap::func out.vap_mode[%d], p2p_mode[%d]}", in hmac_p2p_del_gc_vap() 441 del_vap_param->vap_mode, del_vap_param->p2p_mode); in hmac_p2p_del_gc_vap()
|
H A D | hmac_mgmt_ap.c | 212 if ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) && (auth_alg == WLAN_WITP_AUTH_SAE)) { in hmac_ap_rx_auth_req() 299 if ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) && (hmac_user->base_user->is_mesh_user == HI_TRUE)) { in hmac_ap_rx_deauth_req() 980 if ((mac_vap->vap_mode != WLAN_VAP_MODE_MESH) || in hmac_sta_ssid_and_sup_rate_proc() 1034 if ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) && (sub_type == WLAN_FC0_SUBTYPE_ACTION)) { in hmac_sta_several_param_proc() 1313 if ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) && ((*hmac_user)->base_user->is_mesh_user == HI_TRUE)) { in hmac_ap_get_mac_and_user() 1621 if ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) && (hmac_user->base_user->is_mesh_user == HI_TRUE)) { in hmac_ap_up_rx_disasoc() 1668 if ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) && in hmac_ap_up_get_mesh_hmac_user()
|
H A D | hmac_mgmt_bss_comm.c | 1661 wlan_vap_mode_enum_uint8 vap_mode; in hmac_sa_query_del_user() local 1684 vap_mode = mac_vap->vap_mode; in hmac_sa_query_del_user() 1685 switch (vap_mode) { in hmac_sa_query_del_user() 2061 if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_mgmt_send_deauth_frame() 2151 if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in hmac_mgmt_send_disassoc_frame() 2254 if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_check_bss_cap_info() 2510 if ((power_save == HI_TRUE) && ((hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_BSS_AP) in hmac_mgmt_rx_opmode_notify_frame() 2512 || (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) in hmac_mgmt_rx_opmode_notify_frame()
|
H A D | hmac_sme_sta.c | 162 if (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_set_scan_req_channel_param() 300 if (mac_vap->vap_mode != WLAN_VAP_MODE_BSS_STA) { in hmac_is_sched_scan_allowed() 302 "{hmac_is_sched_scan_allowed::vap mode[%d] don't support sched scan.}", mac_vap->vap_mode); in hmac_is_sched_scan_allowed()
|
H A D | hmac_rx_data.c | 481 if (((mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP) in hmac_rx_transmit_edca_opt_ap() 483 || (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) in hmac_rx_transmit_edca_opt_ap() 988 if (hmac_vap->base_vap->vap_mode == WLAN_VAP_MODE_MESH) { in hmac_rx_process_data_ap()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/common/ |
H A D | mac_device.c | 234 wlan_vap_mode_enum_uint8 vap_mode) in mac_device_find_up_vap_with_mode() 239 if (vap_mode != WLAN_VAP_MODE_MESH && vap_mode != WLAN_VAP_MODE_BSS_STA) { in mac_device_find_up_vap_with_mode() 255 (mac_vap_value->vap_mode == vap_mode)) { in mac_device_find_up_vap_with_mode() 330 if (param->vap_mode == WLAN_VAP_MODE_BSS_STA) { in mac_device_set_vap_id() 340 } else if (param->vap_mode == WLAN_VAP_MODE_BSS_AP && param->p2p_mode == WLAN_P2P_GO_MODE) { in mac_device_set_vap_id() 350 if (param->vap_mode == WLAN_VAP_MODE_BSS_STA) { in mac_device_set_vap_id() 233 mac_device_find_up_vap_with_mode(const mac_device_stru *mac_dev, mac_vap_stru **mac_vap, wlan_vap_mode_enum_uint8 vap_mode) mac_device_find_up_vap_with_mode() argument
|
H A D | mac_vap.c | 200 WIFI_ROM_TEXT mac_wme_param_stru *mac_get_wmm_cfg(wlan_vap_mode_enum_uint8 vap_mode) in mac_get_wmm_cfg() argument 203 if (vap_mode == WLAN_VAP_MODE_BUTT) { in mac_get_wmm_cfg() 205 } else if (vap_mode == WLAN_VAP_MODE_BSS_AP) { in mac_get_wmm_cfg() 208 } else if (vap_mode == WLAN_VAP_MODE_MESH) { in mac_get_wmm_cfg() 231 wmm_param = mac_get_wmm_cfg(mac_vap->vap_mode); in mac_vap_init_wme_param() 240 if ((mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP) in mac_vap_init_wme_param() 242 || (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) in mac_vap_init_wme_param() 311 if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { /* 记录STA模式下的与之关联的VAP的id */ in mac_vap_add_assoc_user() 393 if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in mac_vap_del_user() 417 if (mac_vap->vap_mode in mac_vap_find_user_by_macaddr() [all...] |
H A D | mac_vap.h | 87 #define is_ap(_pst_mac_vap) ((WLAN_VAP_MODE_BSS_AP == (_pst_mac_vap)->vap_mode) || \ 88 ((_pst_mac_vap)->vap_mode == WLAN_VAP_MODE_MESH)) 90 #define is_sta(_pst_mac_vap) (WLAN_VAP_MODE_BSS_STA == (_pst_mac_vap)->vap_mode) 767 wlan_vap_mode_enum_uint8 vap_mode; /* vap模式 */ member 1252 mib_info->wlan_mib_sta_config.dot11_mesh_activated = (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) ? in mac_vap_init_mib_mesh() 1548 mac_wme_param_stru *mac_get_wmm_cfg(wlan_vap_mode_enum_uint8 vap_mode);
|
H A D | mac_frame.c | 207 if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA && mac_vap->p2p_mode == WLAN_P2P_DEV_MODE) { in mac_set_ssid_ie() 735 if ((mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP) in mac_set_qos_info_field() 737 || (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) in mac_set_qos_info_field() 751 if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) { in mac_set_qos_info_field() 1525 if (mac_vap->vap_mode != WLAN_VAP_MODE_MESH) { in mac_set_mesh_configuration_ie() 1585 if (mac_vap->vap_mode != WLAN_VAP_MODE_MESH) { in mac_set_hisi_mesh_optimization_ie() 1651 || ((mac_vap->vap_mode == WLAN_VAP_MODE_MESH) && (us_frm_type == WLAN_FC0_SUBTYPE_PROBE_REQ)) in mac_set_dsss_params()
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/ |
H A D | wal_cfg80211.c | 319 del_vap_param.vap_mode = mac_vap->vap_mode; in wal_del_p2p_group() 323 mac_vap->vap_mode, mac_get_p2p_mode(mac_vap)); in wal_del_p2p_group() 700 if (mac_vap->vap_mode == WLAN_VAP_MODE_CONFIG) { in wal_cfg80211_open_wmm() 1362 wlan_vap_mode_enum_uint8 *vap_mode) in wal_cfg80211_get_vap_p2p_mode() 1369 *vap_mode = WLAN_VAP_MODE_BSS_STA; in wal_cfg80211_get_vap_p2p_mode() 1373 *vap_mode = WLAN_VAP_MODE_BSS_STA; in wal_cfg80211_get_vap_p2p_mode() 1377 *vap_mode = WLAN_VAP_MODE_BSS_AP; in wal_cfg80211_get_vap_p2p_mode() 1381 *vap_mode = WLAN_VAP_MODE_BSS_AP; in wal_cfg80211_get_vap_p2p_mode() 1386 *vap_mode in wal_cfg80211_get_vap_p2p_mode() 1361 wal_cfg80211_get_vap_p2p_mode(nl80211_iftype_uint8 type, wlan_p2p_mode_enum_uint8 *p2p_mode, wlan_vap_mode_enum_uint8 *vap_mode) wal_cfg80211_get_vap_p2p_mode() argument 1473 wal_cfg80211_add_virtual_intf_send_event(oal_net_device_stru *netdev, oal_wireless_dev *wdev, wlan_p2p_mode_enum_uint8 p2p_mode, wlan_vap_mode_enum_uint8 vap_mode) wal_cfg80211_add_virtual_intf_send_event() argument 1551 wlan_vap_mode_enum_uint8 vap_mode; wal_cfg80211_add_virtual_intf() local 4042 wlan_vap_mode_enum_uint8 vap_mode; wal_cfg80211_change_virtual_intf() local [all...] |
H A D | wal_ioctl.c | 788 if (mac_vap->vap_mode == WLAN_VAP_MODE_BSS_AP in wal_ioctl_set_essid() 790 || (mac_vap->vap_mode == WLAN_VAP_MODE_MESH) in wal_ioctl_set_essid() 2617 hi_u32 wal_get_vap_p2p_mode(const oal_wireless_dev *wdev, wlan_vap_mode_enum_uint8 *vap_mode, in wal_get_vap_p2p_mode() argument 2624 *vap_mode = WLAN_VAP_MODE_BSS_STA; in wal_get_vap_p2p_mode() 2627 *vap_mode = WLAN_VAP_MODE_BSS_AP; in wal_get_vap_p2p_mode() 2631 *vap_mode = WLAN_VAP_MODE_BSS_STA; in wal_get_vap_p2p_mode() 2635 *vap_mode = WLAN_VAP_MODE_BSS_AP; in wal_get_vap_p2p_mode() 2639 *vap_mode = WLAN_VAP_MODE_BSS_STA; in wal_get_vap_p2p_mode() 2645 *vap_mode = WLAN_VAP_MODE_MESH; in wal_get_vap_p2p_mode() 2675 wlan_vap_mode_enum_uint8 vap_mode in wal_init_wlan_vap() local [all...] |
H A D | wal_scan.c | 235 if (((mac_vap->vap_mode == WLAN_VAP_MODE_MESH) && (scanned_bss->bss_dscr_info.is_hisi_mesh == HI_TRUE)) || in wal_inform_all_bss() 236 (mac_vap->vap_mode != WLAN_VAP_MODE_MESH)) { in wal_inform_all_bss() 410 if ((mac_vap->vap_mode == WLAN_VAP_MODE_BSS_STA) && (mac_vap->vap_state == MAC_VAP_STATE_STA_WAIT_SCAN)) { in wal_wait_for_scan_timeout_fn()
|