Home
last modified time | relevance | path

Searched refs:mac_dev (Results 1 – 25 of 30) sorted by relevance

12

/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/common/
Dmac_device.c60 WIFI_ROM_TEXT hi_void mac_device_init(mac_device_stru *mac_dev) in mac_device_init() argument
62 mac_dev->max_bandwidth = WLAN_BAND_WIDTH_20M; in mac_device_init()
63 mac_dev->max_band = WLAN_BAND_2G; in mac_device_init()
64 mac_dev->max_channel = 0; in mac_device_init()
65 mac_dev->beacon_interval = WLAN_BEACON_INTVAL_DEFAULT; in mac_device_init()
66 mac_dev->device_state = HI_TRUE; in mac_device_init()
67 mac_dev->reset_switch = HI_FALSE; in mac_device_init()
69 mac_dev->wmm = HI_TRUE; in mac_device_init()
71 mac_dev->protocol_cap = WLAN_PROTOCOL_CAP_HT; in mac_device_init()
72 mac_dev->bandwidth_cap = WLAN_BW_CAP_20M; in mac_device_init()
[all …]
Dmac_device.h570 static inline hi_u8 mac_is_dbac_running(const mac_device_stru *mac_dev) in mac_is_dbac_running() argument
572 return mac_dev->dbac_enabled && mac_dev->dbac_running; in mac_is_dbac_running()
584 static inline hi_u8 mac_need_enqueue_tid_for_dbac(const mac_device_stru *mac_dev, const mac_vap_str… in mac_need_enqueue_tid_for_dbac() argument
586 return (mac_dev->dbac_enabled && (mac_vap->vap_state == MAC_VAP_STATE_PAUSE)); in mac_need_enqueue_tid_for_dbac()
589 static inline hi_u8 mac_device_is_scaning(const mac_device_stru *mac_dev) in mac_device_is_scaning() argument
591 return (mac_dev->curr_scan_state == MAC_SCAN_STATE_RUNNING); in mac_device_is_scaning()
594 static inline hi_u8 mac_device_is_listening(const mac_device_stru *mac_dev) in mac_device_is_listening() argument
596 return ((mac_dev->curr_scan_state == MAC_SCAN_STATE_RUNNING) && in mac_device_is_listening()
597 (mac_dev->scan_params.scan_func & MAC_SCAN_FUNC_P2P_LISTEN)); in mac_device_is_listening()
600 static inline hi_void mac_device_set_channel(mac_device_stru *mac_dev, const mac_cfg_channel_param_… in mac_device_set_channel() argument
[all …]
Dmac_vap.c475 mac_device_stru *mac_dev = HI_NULL; in mac_vap_init_mib_11n() local
476 mac_dev = mac_res_get_dev(); in mac_vap_init_mib_11n()
485 mib_info->phy_ht.dot11_tx_stbc_option_implemented = mac_dev->tx_stbc; in mac_vap_init_mib_11n()
486 mib_info->phy_ht.dot11_rx_stbc_option_implemented = mac_dev->rx_stbc; in mac_vap_init_mib_11n()
813 mac_device_stru *mac_dev = HI_NULL; in mac_vap_init_rates() local
817 mac_dev = mac_res_get_dev(); in mac_vap_init_rates()
819 rates = &mac_dev->mac_rates_11g[0]; in mac_vap_init_rates()
867 mac_device_stru *mac_dev = HI_NULL; in mac_dec_p2p_num() local
869 mac_dev = mac_res_get_dev(); in mac_dec_p2p_num()
871 mac_dev->p2p_info.p2p_device_num--; in mac_dec_p2p_num()
[all …]
Dmac_frame.c1635 mac_device_stru *mac_dev = HI_NULL; in mac_set_dsss_params() local
1647 mac_dev = mac_res_get_dev(); in mac_set_dsss_params()
1653 ) && (mac_dev->curr_scan_state == MAC_SCAN_STATE_RUNNING)) { in mac_set_dsss_params()
1654 chan_num = mac_dev->scan_params.ast_channel_list[mac_dev->scan_chan_idx].chan_number; in mac_set_dsss_params()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/
Dhmac_p2p.c99 mac_device_stru *mac_dev = HI_NULL; in hmac_p2p_check_can_enter_state() local
107 mac_dev = mac_res_get_dev(); in hmac_p2p_check_can_enter_state()
108 vap_num = mac_dev->vap_num; in hmac_p2p_check_can_enter_state()
111 other_vap = mac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in hmac_p2p_check_can_enter_state()
115 mac_dev->auc_vap_id[vap_idx]); in hmac_p2p_check_can_enter_state()
143 mac_device_stru *mac_dev = HI_NULL; in hmac_p2p_get_home_channel() local
156 mac_dev = mac_res_get_dev(); in hmac_p2p_get_home_channel()
161 for (vap_idx = 0; vap_idx < mac_dev->vap_num; vap_idx++) { in hmac_p2p_get_home_channel()
162 mac_vap = mac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in hmac_p2p_get_home_channel()
206 hi_u32 hmac_p2p_check_vap_num(const mac_device_stru *mac_dev, wlan_p2p_mode_enum_uint8 p2p_mode) in hmac_p2p_check_vap_num() argument
[all …]
Dhmac_chan_mgmt.c142 mac_device_stru *mac_dev = HI_NULL; in hmac_chan_multi_switch_to_new_channel() local
148 mac_dev = mac_res_get_dev(); in hmac_chan_multi_switch_to_new_channel()
149 if (mac_dev->vap_num == 0) { in hmac_chan_multi_switch_to_new_channel()
155 for (vap_idx = 0; vap_idx < mac_dev->vap_num; vap_idx++) { in hmac_chan_multi_switch_to_new_channel()
156 ap = mac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in hmac_chan_multi_switch_to_new_channel()
159 mac_dev->auc_vap_id[vap_idx]); in hmac_chan_multi_switch_to_new_channel()
290 mac_device_stru *mac_dev = HI_NULL; in hmac_chan_multi_select_channel_mac() local
296 mac_dev = mac_res_get_dev(); in hmac_chan_multi_select_channel_mac()
297 if (mac_dev->vap_num == 0) { in hmac_chan_multi_select_channel_mac()
302 if (mac_is_dbac_running(mac_dev)) { in hmac_chan_multi_select_channel_mac()
[all …]
Dhmac_device.c70 mac_device_stru *mac_dev = HI_NULL; in hmac_device_exit() local
95 mac_dev = mac_res_get_dev(); in hmac_device_exit()
96 while (mac_dev->auc_vap_id[0] != 0) { in hmac_device_exit()
97 hmac_vap = hmac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in hmac_device_exit()
126 static hi_u32 hmac_cfg_vap_init(const mac_device_stru *mac_dev) in hmac_cfg_vap_init() argument
160 …ret = hmac_vap_creat_netdev(hmac_vap, WLAN_CFG_VAP_NAME, (hi_s8 *)(mac_dev->auc_hw_addr), WLAN_MAC… in hmac_cfg_vap_init()
167 ret = hmac_cfg_vap_send_event(mac_dev); in hmac_cfg_vap_init()
186 mac_device_stru *mac_dev = HI_NULL; in hmac_device_init() local
190 mac_dev = mac_res_get_dev(); in hmac_device_init()
192 mac_device_init(mac_dev); in hmac_device_init()
[all …]
Dhmac_rx_filter.c46 hi_u8 hmac_find_is_sta_up(const mac_device_stru *mac_dev) in hmac_find_is_sta_up() argument
51 for (vap_idx = 0; vap_idx < mac_dev->vap_num; vap_idx++) { in hmac_find_is_sta_up()
52 mac_vap = mac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in hmac_find_is_sta_up()
70 hi_u8 hmac_find_is_ap_up(const mac_device_stru *mac_dev) in hmac_find_is_ap_up() argument
75 for (vap_idx = 0; vap_idx < mac_dev->vap_num; vap_idx++) { in hmac_find_is_ap_up()
76 mac_vap = mac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in hmac_find_is_ap_up()
126 hi_u32 hmac_calc_up_vap_num(const mac_device_stru *mac_dev) in hmac_calc_up_vap_num() argument
132 for (vap_idx = 0; vap_idx < mac_dev->vap_num; vap_idx++) { in hmac_calc_up_vap_num()
133 mac_vap = mac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in hmac_calc_up_vap_num()
396 mac_device_stru *mac_dev = mac_res_get_dev(); in hmac_set_rx_filter_value() local
[all …]
Dhmac_rx_filter.h40 hi_u32 hmac_calc_up_vap_num(const mac_device_stru *mac_dev);
41 hi_u8 hmac_find_is_ap_up(const mac_device_stru *mac_dev);
42 hi_u8 hmac_find_is_ap(const mac_device_stru *mac_dev);
Dhmac_user.c327 mac_device_stru *mac_dev = mac_res_get_dev(); in hmac_user_del_wapi_sta_mesh_proc() local
342 mac_dev->wapi = HI_FALSE; in hmac_user_del_wapi_sta_mesh_proc()
410 mac_device_stru *mac_dev = mac_res_get_dev(); in hmac_sync_del_user() local
432 if (mac_dev->asoc_user_cnt > 0) { in hmac_sync_del_user()
434 mac_dev->asoc_user_cnt--; in hmac_sync_del_user()
516 mac_device_stru *mac_dev = mac_res_get_dev(); in hmac_user_add_check() local
529 if ((mac_dev->asoc_user_cnt >= user_res_num) || (mac_vap->user_nums >= user_spec)) { in hmac_user_add_check()
531 mac_dev->asoc_user_cnt, user_res_num, mac_vap->user_nums); in hmac_user_add_check()
585 mac_device_stru *mac_dev = mac_res_get_dev(); in hmac_user_init_proc() local
588 mac_dev->wapi = HI_FALSE; in hmac_user_init_proc()
[all …]
Dhmac_config.c788 static hi_u32 hmac_config_normal_check_vap_num(const mac_device_stru *mac_dev, const mac_cfg_add_va… in hmac_config_normal_check_vap_num() argument
798 return hmac_p2p_check_vap_num(mac_dev, param->p2p_mode); in hmac_config_normal_check_vap_num()
808 if ((mac_dev->vap_num - mac_dev->sta_num) >= WLAN_AP_NUM_PER_DEVICE) { in hmac_config_normal_check_vap_num()
814 if (mac_dev->sta_num >= WLAN_STA_NUM_PER_DEVICE) { in hmac_config_normal_check_vap_num()
818 mac_dev->sta_num); in hmac_config_normal_check_vap_num()
834 hi_u32 hmac_cfg_vap_send_event(const mac_device_stru *mac_dev) in hmac_cfg_vap_send_event() argument
836 hi_unref_param(mac_dev); in hmac_cfg_vap_send_event()
879 mac_device_stru *mac_dev = mac_res_get_dev(); in hmac_config_set_pm_switch() local
884 for (vap_idx = 0; vap_idx < mac_dev->vap_num; vap_idx++) { in hmac_config_set_pm_switch()
885 vap = mac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in hmac_config_set_pm_switch()
[all …]
Dhmac_scan.c195 mac_device_stru *mac_dev = HI_NULL; in hmac_is_connected_ap_bssid() local
197 mac_dev = mac_res_get_dev(); in hmac_is_connected_ap_bssid()
198 for (vap_idx = 0; vap_idx < mac_dev->vap_num; vap_idx++) { in hmac_is_connected_ap_bssid()
199 mac_vap = mac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in hmac_is_connected_ap_bssid()
202 mac_dev->auc_vap_id[vap_idx]); in hmac_is_connected_ap_bssid()
795 hi_u8 hmac_scan_check_bss_supp_rates(mac_device_stru *mac_dev, const hi_u8 *puc_rate, hi_u8 bss_rat… in hmac_scan_check_bss_supp_rates() argument
802 rates = &mac_dev->mac_rates_11g[0]; in hmac_scan_check_bss_supp_rates()
829 mac_device_stru *mac_dev) in hmac_scan_update_bss_list_rates() argument
846 … num_rates = hmac_scan_check_bss_supp_rates(mac_dev, puc_ie + MAC_IE_HDR_LEN, puc_ie[1], auc_rates, in hmac_scan_update_bss_list_rates()
862 …num_ex_rates = hmac_scan_check_bss_supp_rates(mac_dev, puc_ie + MAC_IE_HDR_LEN, puc_ie[1], auc_rat… in hmac_scan_update_bss_list_rates()
[all …]
Dhmac_uapsd.c48 mac_device_stru *mac_dev = HI_NULL; in hmac_config_set_uapsden() local
51 mac_dev = mac_res_get_dev(); in hmac_config_set_uapsden()
52 if (mac_dev->wmm == HI_FALSE) { in hmac_config_set_uapsden()
Dhmac_p2p.h86 hi_u32 hmac_p2p_check_vap_num(const mac_device_stru *mac_dev, wlan_p2p_mode_enum_uint8 p2p_mode);
89 hi_u32 hmac_p2p_add_gc_vap(mac_device_stru *mac_dev, hi_u16 us_len, const hi_u8 *puc_param);
Dhmac_chan_mgmt.h66 mac_chnl_av_chk_enum_uint8 hmac_chan_do_channel_availability_check(mac_device_stru *mac_dev, mac_va…
Dhmac_encap_frame.c210 mac_device_stru *mac_dev = mac_res_get_dev(); in hmac_mgmt_encap_deauth() local
211 if (mac_device_find_2up_vap(mac_dev, &up_vap1, &up_vap2) == HI_SUCCESS) { in hmac_mgmt_encap_deauth()
Dhmac_sme_sta.c180 mac_device_stru *mac_dev = HI_NULL; in hmac_encap_scan_req() local
196 mac_dev = mac_res_get_dev(); in hmac_encap_scan_req()
198 …if ((mac_device_find_up_p2p_go(mac_dev, &mac_vap_temp) == HI_SUCCESS) && (mac_vap_temp != HI_NULL)… in hmac_encap_scan_req()
296 mac_device_stru *mac_dev = mac_res_get_dev(); in hmac_is_sched_scan_allowed() local
310 mac_device_find_up_vap(mac_dev, &mac_vap_tmp); in hmac_is_sched_scan_allowed()
Dhmac_mgmt_sta.c265 mac_device_stru *mac_dev = HI_NULL; in hmac_sta_update_join_channel() local
268 mac_dev = mac_res_get_dev(); in hmac_sta_update_join_channel()
291 hmac_sta_get_band(mac_dev->bandwidth_cap, join_req->bss_dscr.channel_bandwidth); in hmac_sta_update_join_channel()
437 mac_device_stru *mac_dev = HI_NULL; in hmac_sta_update_join_req_params() local
443 mac_dev = mac_res_get_dev(); in hmac_sta_update_join_req_params()
445 mib_info->wlan_mib_sta_config.dot11_qos_option_implemented = mac_dev->wmm; in hmac_sta_update_join_req_params()
478 if (0 == hmac_calc_up_vap_num(mac_dev)) { in hmac_sta_update_join_req_params()
479 mac_dev->max_channel = mac_vap->channel.chan_number; in hmac_sta_update_join_req_params()
480 mac_dev->max_band = mac_vap->channel.band; in hmac_sta_update_join_req_params()
481 mac_dev->max_bandwidth = mac_vap->channel.en_bandwidth; in hmac_sta_update_join_req_params()
[all …]
Dhmac_11i.c111 mac_device_stru *mac_dev = HI_NULL; in hmac_config_wapi_add_key() local
145 mac_dev = mac_res_get_dev(); in hmac_config_wapi_add_key()
146 mac_dev->wapi = HI_TRUE; in hmac_config_wapi_add_key()
246 mac_device_stru *mac_dev = mac_res_get_dev(); in hmac_config_11i_add_key() local
247 mac_dev->wapi = HI_FALSE; in hmac_config_11i_add_key()
Dhmac_tx_data.c438 mac_device_stru *mac_dev = HI_NULL; in hmac_tx_classify() local
449 mac_dev = mac_res_get_dev(); in hmac_tx_classify()
450 ret = hmac_tx_wmm_acm(mac_dev->wmm, hmac_vap, &tid); in hmac_tx_classify()
456 if ((tx_ctl->is_vipframe != HI_TRUE) || (mac_dev->wmm == HI_FALSE)) { in hmac_tx_classify()
457 hmac_tx_update_tid(mac_dev->wmm, &tid); in hmac_tx_classify()
Dhmac_mgmt_classifier.c354 mac_device_stru *mac_dev = mac_res_get_dev(); in hmac_mgmt_send_disasoc_deauth_event_frame() local
356 if (mac_device_find_2up_vap(mac_dev, &up_vap1, &up_vap2) != HI_SUCCESS) { in hmac_mgmt_send_disasoc_deauth_event_frame()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/
Dwal_scan.c401 mac_device_stru *mac_dev = HI_NULL; in wal_wait_for_scan_timeout_fn() local
417 mac_dev = mac_res_get_dev(); in wal_wait_for_scan_timeout_fn()
419 wiphy = mac_dev->wiphy; in wal_wait_for_scan_timeout_fn()
650 mac_device_stru *mac_dev = mac_res_get_dev(); in wal_force_scan_complete() local
705 …wal_inform_all_bss(netdev, mac_dev->wiphy, &(hmac_dev->scan_mgmt.scan_record_mgmt.bss_mgmt), mac_v… in wal_force_scan_complete()
Dwal_cfg80211.c259 static hi_u32 wal_is_p2p_group_exist(mac_device_stru *mac_dev) in wal_is_p2p_group_exist() argument
261 if (hmac_p2p_check_vap_num(mac_dev, WLAN_P2P_GO_MODE) != HI_SUCCESS || in wal_is_p2p_group_exist()
262 hmac_p2p_check_vap_num(mac_dev, WLAN_P2P_CL_MODE) != HI_SUCCESS) { in wal_is_p2p_group_exist()
283 hi_u32 wal_del_p2p_group(const mac_device_stru *mac_dev) in wal_del_p2p_group() argument
289 for (hi_u8 vap_idx = 0; vap_idx < mac_dev->vap_num; vap_idx++) { in wal_del_p2p_group()
290 mac_vap = mac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in wal_del_p2p_group()
293 mac_dev->auc_vap_id[vap_idx]); in wal_del_p2p_group()
297 hmac_vap = hmac_vap_get_vap_stru(mac_dev->auc_vap_id[vap_idx]); in wal_del_p2p_group()
300 mac_dev->auc_vap_id[vap_idx]); in wal_del_p2p_group()
307 mac_dev->auc_vap_id[vap_idx]); in wal_del_p2p_group()
[all …]
Dwal_event.c132 mac_device_stru *mac_dev = mac_res_get_dev(); in wal_scan_comp_proc_sta() local
151 wal_inform_all_bss(netdev, mac_dev->wiphy, bss_mgmt, event->event_hdr.vap_id); in wal_scan_comp_proc_sta()
173 oal_cfg80211_sched_scan_result(mac_dev->wiphy); in wal_scan_comp_proc_sta()
628 mac_device_stru *mac_dev = HI_NULL; in wal_p2p_listen_timeout() local
646 mac_dev = mac_res_get_dev(); in wal_p2p_listen_timeout()
647 ull_cookie = mac_dev->p2p_info.ull_last_roc_id; in wal_p2p_listen_timeout()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/hdfadapt/
Dnet_adpater.c1029 mac_device_stru *mac_dev = HI_NULL; in wal_netdev_stop_del_vap() local
1046 mac_dev = mac_res_get_dev(); /* 用于删除p2p小组 */ in wal_netdev_stop_del_vap()
1047 if (mac_dev != HI_NULL) { in wal_netdev_stop_del_vap()
1048 wal_del_p2p_group(mac_dev); in wal_netdev_stop_del_vap()

12