Lines Matching refs:mac
474 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_init_rx_config() local
476 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_RCR, (u8 *) (&mac->rx_conf)); in rtl_init_rx_config()
507 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_query_shortgi() local
524 if (mac->opmode == NL80211_IFTYPE_STATION) in _rtl_query_shortgi()
525 bw_40 = mac->bw_40; in _rtl_query_shortgi()
526 else if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_shortgi()
527 mac->opmode == NL80211_IFTYPE_ADHOC) in _rtl_query_shortgi()
571 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_txrate_selectmode() local
580 if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_txrate_selectmode()
582 } else if (mac->opmode == NL80211_IFTYPE_ADHOC) { in _rtl_txrate_selectmode()
591 } else if (mac->opmode == NL80211_IFTYPE_AP) { in _rtl_txrate_selectmode()
598 if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_txrate_selectmode()
601 if (mac->mode == WIRELESS_MODE_N_24G) in _rtl_txrate_selectmode()
603 else if (mac->mode == WIRELESS_MODE_N_5G) in _rtl_txrate_selectmode()
605 else if (mac->mode & WIRELESS_MODE_G) in _rtl_txrate_selectmode()
607 else if (mac->mode & WIRELESS_MODE_B) in _rtl_txrate_selectmode()
609 else if (mac->mode & WIRELESS_MODE_A) in _rtl_txrate_selectmode()
611 } else if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_txrate_selectmode()
612 mac->opmode == NL80211_IFTYPE_ADHOC) { in _rtl_txrate_selectmode()
631 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_query_bandwidth_mode() local
636 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_bandwidth_mode()
637 mac->opmode == NL80211_IFTYPE_ADHOC) { in _rtl_query_bandwidth_mode()
641 } else if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_bandwidth_mode()
642 if (!mac->bw_40 || !(sta->ht_cap.ht_supported)) in _rtl_query_bandwidth_mode()
907 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_action_proc() local
923 if (mac->act_scanning) in rtl_action_proc()
1018 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_tx_agg_start() local
1038 ieee80211_start_tx_ba_cb_irqsafe(mac->vif, sta->addr, tid); in rtl_tx_agg_start()
1047 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_tx_agg_stop() local
1067 ieee80211_stop_tx_ba_cb_irqsafe(mac->vif, sta->addr, tid); in rtl_tx_agg_stop()
1111 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_watchdog_wq_callback() local
1128 if (mac->link_state > MAC80211_NOLINK) { in rtl_watchdog_wq_callback()
1129 if (mac->cnt_after_linked < 20) in rtl_watchdog_wq_callback()
1130 mac->cnt_after_linked++; in rtl_watchdog_wq_callback()
1132 mac->cnt_after_linked = 0; in rtl_watchdog_wq_callback()
1139 if (mac->link_state >= MAC80211_LINKED) { in rtl_watchdog_wq_callback()
1414 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_recognize_peer() local
1435 if (mac->opmode != NL80211_IFTYPE_STATION) in rtl_recognize_peer()
1438 if (mac->link_state == MAC80211_NOLINK) { in rtl_recognize_peer()
1439 mac->vendor = PEER_UNKNOWN; in rtl_recognize_peer()
1443 if (mac->cnt_after_linked > 2) in rtl_recognize_peer()
1459 vendor = mac->vendor; in rtl_recognize_peer()
1461 if ((memcmp(mac->bssid, ap5_1, 3) == 0) || in rtl_recognize_peer()
1462 (memcmp(mac->bssid, ap5_2, 3) == 0) || in rtl_recognize_peer()
1463 (memcmp(mac->bssid, ap5_3, 3) == 0) || in rtl_recognize_peer()
1464 (memcmp(mac->bssid, ap5_4, 3) == 0) || in rtl_recognize_peer()
1465 (memcmp(mac->bssid, ap5_5, 3) == 0) || in rtl_recognize_peer()
1466 (memcmp(mac->bssid, ap5_6, 3) == 0) || in rtl_recognize_peer()
1470 } else if ((memcmp(mac->bssid, ap4_4, 3) == 0) || in rtl_recognize_peer()
1471 (memcmp(mac->bssid, ap4_5, 3) == 0) || in rtl_recognize_peer()
1472 (memcmp(mac->bssid, ap4_1, 3) == 0) || in rtl_recognize_peer()
1473 (memcmp(mac->bssid, ap4_2, 3) == 0) || in rtl_recognize_peer()
1474 (memcmp(mac->bssid, ap4_3, 3) == 0) || in rtl_recognize_peer()
1478 } else if (memcmp(mac->bssid, ap6_1, 3) == 0 || in rtl_recognize_peer()
1482 } else if ((memcmp(mac->bssid, ap3_1, 3) == 0) || in rtl_recognize_peer()
1483 (memcmp(mac->bssid, ap3_2, 3) == 0) || in rtl_recognize_peer()
1484 (memcmp(mac->bssid, ap3_3, 3) == 0) || in rtl_recognize_peer()
1488 } else if (memcmp(mac->bssid, ap7_1, 3) == 0 || in rtl_recognize_peer()
1494 mac->vendor = vendor; in rtl_recognize_peer()