Lines Matching refs:mac

585 	struct rtl_mac *mac = rtl_mac(rtl_priv(hw));  in rtl_init_rx_config()  local
587 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_RCR, (u8 *) (&mac->rx_conf)); in rtl_init_rx_config()
619 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_query_shortgi() local
638 if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_shortgi()
639 bw_40 = mac->bw_40; in _rtl_query_shortgi()
640 bw_80 = mac->bw_80; in _rtl_query_shortgi()
641 } else if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_shortgi()
642 mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_query_shortgi()
643 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_query_shortgi()
696 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_txrate_selectmode() local
705 if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_txrate_selectmode()
707 } else if (mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_txrate_selectmode()
708 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_txrate_selectmode()
717 } else if (mac->opmode == NL80211_IFTYPE_AP) { in _rtl_txrate_selectmode()
725 if (mac->opmode == NL80211_IFTYPE_STATION || in _rtl_txrate_selectmode()
726 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_txrate_selectmode()
729 if (mac->mode == WIRELESS_MODE_AC_5G) in _rtl_txrate_selectmode()
732 else if (mac->mode == WIRELESS_MODE_AC_24G) in _rtl_txrate_selectmode()
735 else if (mac->mode == WIRELESS_MODE_N_24G) in _rtl_txrate_selectmode()
737 else if (mac->mode == WIRELESS_MODE_N_5G) in _rtl_txrate_selectmode()
739 else if (mac->mode & WIRELESS_MODE_G) in _rtl_txrate_selectmode()
741 else if (mac->mode & WIRELESS_MODE_B) in _rtl_txrate_selectmode()
743 else if (mac->mode & WIRELESS_MODE_A) in _rtl_txrate_selectmode()
746 } else if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_txrate_selectmode()
747 mac->opmode == NL80211_IFTYPE_ADHOC) { in _rtl_txrate_selectmode()
765 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_query_bandwidth_mode() local
770 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_bandwidth_mode()
771 mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_query_bandwidth_mode()
772 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_query_bandwidth_mode()
776 } else if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_bandwidth_mode()
777 if (!mac->bw_40 || !(sta->ht_cap.ht_supported)) in _rtl_query_bandwidth_mode()
791 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_bandwidth_mode()
792 mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_query_bandwidth_mode()
793 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_query_bandwidth_mode()
796 } else if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_bandwidth_mode()
797 if (!mac->bw_80 || in _rtl_query_bandwidth_mode()
1174 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_tx_mgmt_proc() local
1179 mac->link_state < MAC80211_LINKED && in rtl_tx_mgmt_proc()
1188 mac->link_state = MAC80211_LINKING; in rtl_tx_mgmt_proc()
1228 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_action_proc() local
1244 if (mac->act_scanning) in rtl_action_proc()
1570 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_watchdog_wq_callback() local
1588 if (mac->link_state > MAC80211_NOLINK) { in rtl_watchdog_wq_callback()
1589 if (mac->cnt_after_linked < 20) in rtl_watchdog_wq_callback()
1590 mac->cnt_after_linked++; in rtl_watchdog_wq_callback()
1592 mac->cnt_after_linked = 0; in rtl_watchdog_wq_callback()
1598 if (mac->link_state >= MAC80211_LINKED) { in rtl_watchdog_wq_callback()
1684 if (mac->link_state == MAC80211_LINKED && in rtl_watchdog_wq_callback()
1685 mac->opmode == NL80211_IFTYPE_STATION) { in rtl_watchdog_wq_callback()
2005 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_recognize_peer() local
2026 if (mac->opmode != NL80211_IFTYPE_STATION) in rtl_recognize_peer()
2029 if (mac->link_state == MAC80211_NOLINK) { in rtl_recognize_peer()
2030 mac->vendor = PEER_UNKNOWN; in rtl_recognize_peer()
2034 if (mac->cnt_after_linked > 2) in rtl_recognize_peer()
2050 vendor = mac->vendor; in rtl_recognize_peer()
2052 if ((memcmp(mac->bssid, ap5_1, 3) == 0) || in rtl_recognize_peer()
2053 (memcmp(mac->bssid, ap5_2, 3) == 0) || in rtl_recognize_peer()
2054 (memcmp(mac->bssid, ap5_3, 3) == 0) || in rtl_recognize_peer()
2055 (memcmp(mac->bssid, ap5_4, 3) == 0) || in rtl_recognize_peer()
2056 (memcmp(mac->bssid, ap5_5, 3) == 0) || in rtl_recognize_peer()
2057 (memcmp(mac->bssid, ap5_6, 3) == 0) || in rtl_recognize_peer()
2061 } else if ((memcmp(mac->bssid, ap4_4, 3) == 0) || in rtl_recognize_peer()
2062 (memcmp(mac->bssid, ap4_5, 3) == 0) || in rtl_recognize_peer()
2063 (memcmp(mac->bssid, ap4_1, 3) == 0) || in rtl_recognize_peer()
2064 (memcmp(mac->bssid, ap4_2, 3) == 0) || in rtl_recognize_peer()
2065 (memcmp(mac->bssid, ap4_3, 3) == 0) || in rtl_recognize_peer()
2069 } else if (memcmp(mac->bssid, ap6_1, 3) == 0 || in rtl_recognize_peer()
2073 } else if ((memcmp(mac->bssid, ap3_1, 3) == 0) || in rtl_recognize_peer()
2074 (memcmp(mac->bssid, ap3_2, 3) == 0) || in rtl_recognize_peer()
2075 (memcmp(mac->bssid, ap3_3, 3) == 0) || in rtl_recognize_peer()
2079 } else if (memcmp(mac->bssid, ap7_1, 3) == 0 || in rtl_recognize_peer()
2085 mac->vendor = vendor; in rtl_recognize_peer()