Lines Matching refs:mac

587 	struct rtl_mac *mac = rtl_mac(rtl_priv(hw));  in rtl_init_rx_config()  local
589 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_RCR, (u8 *) (&mac->rx_conf)); in rtl_init_rx_config()
621 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_query_shortgi() local
642 if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_shortgi()
643 bw_40 = mac->bw_40; in _rtl_query_shortgi()
644 bw_80 = mac->bw_80; in _rtl_query_shortgi()
645 } else if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_shortgi()
646 mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_query_shortgi()
647 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_query_shortgi()
780 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_txrate_selectmode() local
789 if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_txrate_selectmode()
791 } else if (mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_txrate_selectmode()
792 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_txrate_selectmode()
802 } else if (mac->opmode == NL80211_IFTYPE_AP) { in _rtl_txrate_selectmode()
810 if (mac->opmode == NL80211_IFTYPE_STATION || in _rtl_txrate_selectmode()
811 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_txrate_selectmode()
817 else if (mac->mode == WIRELESS_MODE_AC_5G) in _rtl_txrate_selectmode()
820 else if (mac->mode == WIRELESS_MODE_AC_24G) in _rtl_txrate_selectmode()
823 else if (mac->mode == WIRELESS_MODE_N_24G) in _rtl_txrate_selectmode()
826 else if (mac->mode == WIRELESS_MODE_N_5G) in _rtl_txrate_selectmode()
829 else if (mac->mode & WIRELESS_MODE_G) in _rtl_txrate_selectmode()
832 else if (mac->mode & WIRELESS_MODE_B) in _rtl_txrate_selectmode()
835 else if (mac->mode & WIRELESS_MODE_A) in _rtl_txrate_selectmode()
839 } else if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_txrate_selectmode()
840 mac->opmode == NL80211_IFTYPE_ADHOC) { in _rtl_txrate_selectmode()
859 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_query_bandwidth_mode() local
864 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_bandwidth_mode()
865 mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_query_bandwidth_mode()
866 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_query_bandwidth_mode()
870 } else if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_bandwidth_mode()
871 if (!mac->bw_40 || !(sta->deflink.ht_cap.ht_supported)) in _rtl_query_bandwidth_mode()
884 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_bandwidth_mode()
885 mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_query_bandwidth_mode()
886 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_query_bandwidth_mode()
889 } else if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_bandwidth_mode()
890 if (!mac->bw_80 || in _rtl_query_bandwidth_mode()
1316 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_tx_mgmt_proc() local
1321 mac->link_state < MAC80211_LINKED && in rtl_tx_mgmt_proc()
1329 mac->link_state = MAC80211_LINKING; in rtl_tx_mgmt_proc()
1369 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_action_proc() local
1385 if (mac->act_scanning) in rtl_action_proc()
1994 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_collect_scan_list() local
2000 if (!mac->act_scanning) in rtl_collect_scan_list()
2051 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_watchdog_wq_callback() local
2069 if (mac->link_state > MAC80211_NOLINK) { in rtl_watchdog_wq_callback()
2070 if (mac->cnt_after_linked < 20) in rtl_watchdog_wq_callback()
2071 mac->cnt_after_linked++; in rtl_watchdog_wq_callback()
2073 mac->cnt_after_linked = 0; in rtl_watchdog_wq_callback()
2079 if (mac->link_state >= MAC80211_LINKED) { in rtl_watchdog_wq_callback()
2186 if (mac->link_state == MAC80211_LINKED && in rtl_watchdog_wq_callback()
2187 mac->opmode == NL80211_IFTYPE_STATION) { in rtl_watchdog_wq_callback()
2623 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_recognize_peer() local
2644 if (mac->opmode != NL80211_IFTYPE_STATION) in rtl_recognize_peer()
2647 if (mac->link_state == MAC80211_NOLINK) { in rtl_recognize_peer()
2648 mac->vendor = PEER_UNKNOWN; in rtl_recognize_peer()
2652 if (mac->cnt_after_linked > 2) in rtl_recognize_peer()
2668 vendor = mac->vendor; in rtl_recognize_peer()
2670 if ((memcmp(mac->bssid, ap5_1, 3) == 0) || in rtl_recognize_peer()
2671 (memcmp(mac->bssid, ap5_2, 3) == 0) || in rtl_recognize_peer()
2672 (memcmp(mac->bssid, ap5_3, 3) == 0) || in rtl_recognize_peer()
2673 (memcmp(mac->bssid, ap5_4, 3) == 0) || in rtl_recognize_peer()
2674 (memcmp(mac->bssid, ap5_5, 3) == 0) || in rtl_recognize_peer()
2675 (memcmp(mac->bssid, ap5_6, 3) == 0) || in rtl_recognize_peer()
2679 } else if ((memcmp(mac->bssid, ap4_4, 3) == 0) || in rtl_recognize_peer()
2680 (memcmp(mac->bssid, ap4_5, 3) == 0) || in rtl_recognize_peer()
2681 (memcmp(mac->bssid, ap4_1, 3) == 0) || in rtl_recognize_peer()
2682 (memcmp(mac->bssid, ap4_2, 3) == 0) || in rtl_recognize_peer()
2683 (memcmp(mac->bssid, ap4_3, 3) == 0) || in rtl_recognize_peer()
2687 } else if (memcmp(mac->bssid, ap6_1, 3) == 0 || in rtl_recognize_peer()
2691 } else if ((memcmp(mac->bssid, ap3_1, 3) == 0) || in rtl_recognize_peer()
2692 (memcmp(mac->bssid, ap3_2, 3) == 0) || in rtl_recognize_peer()
2693 (memcmp(mac->bssid, ap3_3, 3) == 0) || in rtl_recognize_peer()
2697 } else if (memcmp(mac->bssid, ap7_1, 3) == 0 || in rtl_recognize_peer()
2703 mac->vendor = vendor; in rtl_recognize_peer()