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
640 if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_shortgi()
641 bw_40 = mac->bw_40; in _rtl_query_shortgi()
642 bw_80 = mac->bw_80; in _rtl_query_shortgi()
643 } else if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_shortgi()
644 mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_query_shortgi()
645 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_query_shortgi()
698 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_txrate_selectmode() local
707 if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_txrate_selectmode()
709 } else if (mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_txrate_selectmode()
710 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_txrate_selectmode()
719 } else if (mac->opmode == NL80211_IFTYPE_AP) { in _rtl_txrate_selectmode()
727 if (mac->opmode == NL80211_IFTYPE_STATION || in _rtl_txrate_selectmode()
728 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_txrate_selectmode()
731 if (mac->mode == WIRELESS_MODE_AC_5G) in _rtl_txrate_selectmode()
734 else if (mac->mode == WIRELESS_MODE_AC_24G) in _rtl_txrate_selectmode()
737 else if (mac->mode == WIRELESS_MODE_N_24G) in _rtl_txrate_selectmode()
739 else if (mac->mode == WIRELESS_MODE_N_5G) in _rtl_txrate_selectmode()
741 else if (mac->mode & WIRELESS_MODE_G) in _rtl_txrate_selectmode()
743 else if (mac->mode & WIRELESS_MODE_B) in _rtl_txrate_selectmode()
745 else if (mac->mode & WIRELESS_MODE_A) in _rtl_txrate_selectmode()
748 } else if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_txrate_selectmode()
749 mac->opmode == NL80211_IFTYPE_ADHOC) { in _rtl_txrate_selectmode()
767 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_query_bandwidth_mode() local
772 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_bandwidth_mode()
773 mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_query_bandwidth_mode()
774 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_query_bandwidth_mode()
778 } else if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_bandwidth_mode()
779 if (!mac->bw_40 || !(sta->ht_cap.ht_supported)) in _rtl_query_bandwidth_mode()
793 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_bandwidth_mode()
794 mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_query_bandwidth_mode()
795 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_query_bandwidth_mode()
798 } else if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_bandwidth_mode()
799 if (!mac->bw_80 || in _rtl_query_bandwidth_mode()
1176 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_tx_mgmt_proc() local
1181 mac->link_state < MAC80211_LINKED && in rtl_tx_mgmt_proc()
1190 mac->link_state = MAC80211_LINKING; in rtl_tx_mgmt_proc()
1230 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_action_proc() local
1246 if (mac->act_scanning) in rtl_action_proc()
1572 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_watchdog_wq_callback() local
1590 if (mac->link_state > MAC80211_NOLINK) { in rtl_watchdog_wq_callback()
1591 if (mac->cnt_after_linked < 20) in rtl_watchdog_wq_callback()
1592 mac->cnt_after_linked++; in rtl_watchdog_wq_callback()
1594 mac->cnt_after_linked = 0; in rtl_watchdog_wq_callback()
1600 if (mac->link_state >= MAC80211_LINKED) { in rtl_watchdog_wq_callback()
1686 if (mac->link_state == MAC80211_LINKED && in rtl_watchdog_wq_callback()
1687 mac->opmode == NL80211_IFTYPE_STATION) { in rtl_watchdog_wq_callback()
2007 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_recognize_peer() local
2028 if (mac->opmode != NL80211_IFTYPE_STATION) in rtl_recognize_peer()
2031 if (mac->link_state == MAC80211_NOLINK) { in rtl_recognize_peer()
2032 mac->vendor = PEER_UNKNOWN; in rtl_recognize_peer()
2036 if (mac->cnt_after_linked > 2) in rtl_recognize_peer()
2052 vendor = mac->vendor; in rtl_recognize_peer()
2054 if ((memcmp(mac->bssid, ap5_1, 3) == 0) || in rtl_recognize_peer()
2055 (memcmp(mac->bssid, ap5_2, 3) == 0) || in rtl_recognize_peer()
2056 (memcmp(mac->bssid, ap5_3, 3) == 0) || in rtl_recognize_peer()
2057 (memcmp(mac->bssid, ap5_4, 3) == 0) || in rtl_recognize_peer()
2058 (memcmp(mac->bssid, ap5_5, 3) == 0) || in rtl_recognize_peer()
2059 (memcmp(mac->bssid, ap5_6, 3) == 0) || in rtl_recognize_peer()
2063 } else if ((memcmp(mac->bssid, ap4_4, 3) == 0) || in rtl_recognize_peer()
2064 (memcmp(mac->bssid, ap4_5, 3) == 0) || in rtl_recognize_peer()
2065 (memcmp(mac->bssid, ap4_1, 3) == 0) || in rtl_recognize_peer()
2066 (memcmp(mac->bssid, ap4_2, 3) == 0) || in rtl_recognize_peer()
2067 (memcmp(mac->bssid, ap4_3, 3) == 0) || in rtl_recognize_peer()
2071 } else if (memcmp(mac->bssid, ap6_1, 3) == 0 || in rtl_recognize_peer()
2075 } else if ((memcmp(mac->bssid, ap3_1, 3) == 0) || in rtl_recognize_peer()
2076 (memcmp(mac->bssid, ap3_2, 3) == 0) || in rtl_recognize_peer()
2077 (memcmp(mac->bssid, ap3_3, 3) == 0) || in rtl_recognize_peer()
2081 } else if (memcmp(mac->bssid, ap7_1, 3) == 0 || in rtl_recognize_peer()
2087 mac->vendor = vendor; in rtl_recognize_peer()