Lines Matching refs:mac

156 	struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
177 mac->link_state = MAC80211_NOLINK;
178 memset(mac->bssid, 0, 6);
179 mac->vendor = PEER_UNKNOWN;
219 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
222 if (mac->vif) {
224 "vif has been set!! mac->vif = 0x%p\n", mac->vif);
235 mac->p2p = P2P_ROLE_CLIENT;
238 if (mac->beacon_enabled == 1) {
241 mac->beacon_enabled = 0;
250 mac->link_state = MAC80211_LINKED;
253 mac->basic_rates = 0xfff;
255 mac->basic_rates = 0xff0;
257 (u8 *)(&mac->basic_rates));
261 mac->p2p = P2P_ROLE_GO;
267 mac->link_state = MAC80211_LINKED;
270 mac->basic_rates = 0xfff;
272 mac->basic_rates = 0xff0;
274 (u8 *)(&mac->basic_rates));
280 mac->link_state = MAC80211_LINKED;
283 mac->basic_rates = 0xfff;
285 mac->basic_rates = 0xff0;
287 (u8 *)(&mac->basic_rates));
296 if (mac->p2p) {
299 mac->basic_rates = 0xff0;/*disable cck rate for p2p*/
301 (u8 *)(&mac->basic_rates));
303 mac->vif = vif;
304 mac->opmode = vif->type;
306 memcpy(mac->mac_addr, vif->addr, ETH_ALEN);
307 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ETHER_ADDR, mac->mac_addr);
318 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
326 if (mac->beacon_enabled == 1) {
327 mac->beacon_enabled = 0;
337 mac->p2p = 0;
338 mac->vif = NULL;
339 mac->link_state = MAC80211_NOLINK;
340 memset(mac->bssid, 0, ETH_ALEN);
341 mac->vendor = PEER_UNKNOWN;
342 mac->opmode = NL80211_IFTYPE_UNSPECIFIED;
343 rtlpriv->cfg->ops->set_network_type(hw, mac->opmode);
416 struct rtl_mac *mac = &rtlpriv->mac80211;
450 else if (memcmp(pattern_os, mac->mac_addr, 6) == 0)
553 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
568 ieee80211_resume_disconnect(mac->vif);
578 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
582 if (mac->skip_scan)
633 mac->retry_long = hw->conf.long_frame_max_tx_count;
634 mac->retry_short = hw->conf.long_frame_max_tx_count;
650 if (mac->act_scanning)
651 mac->n_channels++;
654 mac->link_state < MAC80211_LINKED &&
655 !mac->act_scanning) {
678 mac->bw_80 = true;
679 mac->bw_40 = true;
681 mac->cur_80_prime_sc =
684 mac->cur_40_prime_sc =
689 mac->cur_40_prime_sc =
695 mac->cur_80_prime_sc =
698 mac->cur_40_prime_sc =
703 mac->cur_40_prime_sc =
715 mac->cur_40_prime_sc =
719 mac->bw_40 = false;
720 mac->bw_80 = false;
724 mac->cur_40_prime_sc =
728 mac->bw_40 = true;
729 mac->bw_80 = false;
737 mac->cur_40_prime_sc =
741 mac->bw_40 = true;
742 mac->bw_80 = false;
749 mac->bw_40 = false;
750 mac->bw_80 = false;
790 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
799 mac->rx_conf |= rtlpriv->cfg->maps[MAC_RCR_AM] |
804 mac->rx_conf &= ~(rtlpriv->cfg->maps[MAC_RCR_AM] |
813 mac->rx_conf |= rtlpriv->cfg->maps[MAC_RCR_ACRC32];
817 mac->rx_conf &= ~rtlpriv->cfg->maps[MAC_RCR_ACRC32];
828 (mac->link_state >= MAC80211_LINKED)) {
829 if (mac->opmode != NL80211_IFTYPE_AP &&
830 mac->opmode != NL80211_IFTYPE_MESH_POINT) {
840 mac->rx_conf |= rtlpriv->cfg->maps[MAC_RCR_ACF];
845 mac->rx_conf &= ~rtlpriv->cfg->maps[MAC_RCR_ACF];
853 mac->rx_conf |= rtlpriv->cfg->maps[MAC_RCR_AAP];
857 mac->rx_conf &= ~rtlpriv->cfg->maps[MAC_RCR_AAP];
869 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
897 if (mac->p2p)
960 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
970 mac->ac[aci].aifs = param->aifs;
971 mac->ac[aci].cw_min = cpu_to_le16(param->cw_min);
972 mac->ac[aci].cw_max = cpu_to_le16(param->cw_max);
973 mac->ac[aci].tx_op = cpu_to_le16(param->txop);
974 memcpy(&mac->edca_param[aci], param, sizeof(*param));
986 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
996 if (mac->beacon_enabled == 0) {
1002 mac->beacon_enabled = 1;
1013 if (mac->beacon_enabled == 1) {
1017 mac->beacon_enabled = 0;
1026 mac->beacon_interval = bss_conf->beacon_int;
1049 mac->link_state = MAC80211_LINKED;
1050 mac->cnt_after_linked = 0;
1051 mac->assoc_id = bss_conf->aid;
1052 memcpy(mac->bssid, bss_conf->bssid, ETH_ALEN);
1072 mac->mode = WIRELESS_MODE_A;
1075 mac->mode = WIRELESS_MODE_B;
1077 mac->mode = WIRELESS_MODE_G;
1082 mac->mode = WIRELESS_MODE_N_24G;
1084 mac->mode = WIRELESS_MODE_N_5G;
1089 mac->mode = WIRELESS_MODE_AC_5G;
1091 mac->mode = WIRELESS_MODE_AC_24G;
1108 if (mac->link_state == MAC80211_LINKED) {
1114 mac->link_state = MAC80211_NOLINK;
1115 memset(mac->bssid, 0, ETH_ALEN);
1116 mac->vendor = PEER_UNKNOWN;
1117 mac->mode = 0;
1144 mac->use_cts_protect = bss_conf->use_cts_prot;
1152 mac->short_preamble = bss_conf->use_short_preamble;
1154 (u8 *)(&mac->short_preamble));
1162 mac->slot_time = RTL_SLOT_TIME_9;
1164 mac->slot_time = RTL_SLOT_TIME_20;
1167 (u8 *)(&mac->slot_time));
1180 mac->current_ampdu_density)
1181 mac->current_ampdu_density =
1184 mac->current_ampdu_factor)
1185 mac->current_ampdu_factor =
1191 (u8 *)(&mac->max_mss_density));
1193 &mac->current_ampdu_factor);
1195 &mac->current_ampdu_density);
1208 mac->vendor = PEER_UNKNOWN;
1209 memcpy(mac->bssid, bss_conf->bssid, ETH_ALEN);
1219 mac->mode = WIRELESS_MODE_A;
1222 mac->mode = WIRELESS_MODE_B;
1224 mac->mode = WIRELESS_MODE_G;
1229 mac->mode = WIRELESS_MODE_N_24G;
1231 mac->mode = WIRELESS_MODE_N_5G;
1236 mac->mode = WIRELESS_MODE_AC_5G;
1238 mac->mode = WIRELESS_MODE_AC_24G;
1246 sta_entry->wireless_mode = mac->mode;
1250 mac->ht_enable = true;
1255 * mac->bw_40 = true;
1261 mac->vht_enable = true;
1271 mac->basic_rates = basic_rates;
1294 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
1295 u8 bibss = (mac->opmode == NL80211_IFTYPE_ADHOC) ? 1 : 0;
1297 mac->tsf = tsf;
1367 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
1370 mac->act_scanning = true;
1372 mac->skip_scan = true;
1384 if (mac->link_state == MAC80211_LINKED) {
1387 mac->link_state = MAC80211_LINKED_SCANNING;
1392 /* Dul mac */
1402 struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
1405 mac->act_scanning = false;
1406 mac->skip_scan = false;
1411 if (mac->n_channels == 3)
1412 mac->p2p_in_use = true;
1414 mac->p2p_in_use = false;
1415 mac->n_channels = 0;
1416 /* Dul mac */
1419 if (mac->link_state == MAC80211_LINKED_SCANNING) {
1420 mac->link_state = MAC80211_LINKED;
1421 if (mac->opmode == NL80211_IFTYPE_STATION) {
1423 rtlpriv->cfg->ops->set_network_type(hw, mac->opmode);
1456 "%s hardware based encryption for keyidx: %d, mac: %pM\n",