Lines Matching refs:beacon
854 u8 *beacon, u32 frame_size) in iwl_mvm_mac_ctxt_set_tim() argument
857 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)beacon; in iwl_mvm_mac_ctxt_set_tim()
861 tim_idx = mgmt->u.beacon.variable - beacon; in iwl_mvm_mac_ctxt_set_tim()
865 (beacon[tim_idx] != WLAN_EID_TIM)) in iwl_mvm_mac_ctxt_set_tim()
866 tim_idx += beacon[tim_idx+1] + 2; in iwl_mvm_mac_ctxt_set_tim()
869 if ((tim_idx < (frame_size - 1)) && (beacon[tim_idx] == WLAN_EID_TIM)) { in iwl_mvm_mac_ctxt_set_tim()
871 *tim_size = cpu_to_le32((u32)beacon[tim_idx + 1]); in iwl_mvm_mac_ctxt_set_tim()
877 u32 iwl_mvm_find_ie_offset(u8 *beacon, u8 eid, u32 frame_size) in iwl_mvm_find_ie_offset() argument
879 struct ieee80211_mgmt *mgmt = (void *)beacon; in iwl_mvm_find_ie_offset()
882 if (WARN_ON_ONCE(frame_size <= (mgmt->u.beacon.variable - beacon))) in iwl_mvm_find_ie_offset()
885 frame_size -= mgmt->u.beacon.variable - beacon; in iwl_mvm_find_ie_offset()
887 ie = cfg80211_find_ie(eid, mgmt->u.beacon.variable, frame_size); in iwl_mvm_find_ie_offset()
891 return ie - beacon; in iwl_mvm_find_ie_offset()
993 struct sk_buff *beacon, in iwl_mvm_mac_ctxt_set_tx() argument
1001 info = IEEE80211_SKB_CB(beacon); in iwl_mvm_mac_ctxt_set_tx()
1004 tx->len = cpu_to_le16((u16)beacon->len); in iwl_mvm_mac_ctxt_set_tx()
1009 iwl_mvm_bt_coex_tx_prio(mvm, (void *)beacon->data, info, 0) << in iwl_mvm_mac_ctxt_set_tx()
1032 struct sk_buff *beacon, in iwl_mvm_mac_ctxt_send_beacon_cmd() argument
1043 cmd.len[1] = beacon->len; in iwl_mvm_mac_ctxt_send_beacon_cmd()
1044 cmd.data[1] = beacon->data; in iwl_mvm_mac_ctxt_send_beacon_cmd()
1052 struct sk_buff *beacon) in iwl_mvm_mac_ctxt_send_beacon_v6() argument
1057 iwl_mvm_mac_ctxt_set_tx(mvm, vif, beacon, &beacon_cmd.tx); in iwl_mvm_mac_ctxt_send_beacon_v6()
1064 beacon->data, beacon->len); in iwl_mvm_mac_ctxt_send_beacon_v6()
1066 return iwl_mvm_mac_ctxt_send_beacon_cmd(mvm, beacon, &beacon_cmd, in iwl_mvm_mac_ctxt_send_beacon_v6()
1072 struct sk_buff *beacon) in iwl_mvm_mac_ctxt_send_beacon_v7() argument
1077 iwl_mvm_mac_ctxt_set_tx(mvm, vif, beacon, &beacon_cmd.tx); in iwl_mvm_mac_ctxt_send_beacon_v7()
1084 beacon->data, beacon->len); in iwl_mvm_mac_ctxt_send_beacon_v7()
1087 cpu_to_le32(iwl_mvm_find_ie_offset(beacon->data, in iwl_mvm_mac_ctxt_send_beacon_v7()
1089 beacon->len)); in iwl_mvm_mac_ctxt_send_beacon_v7()
1091 cpu_to_le32(iwl_mvm_find_ie_offset(beacon->data, in iwl_mvm_mac_ctxt_send_beacon_v7()
1093 beacon->len)); in iwl_mvm_mac_ctxt_send_beacon_v7()
1095 return iwl_mvm_mac_ctxt_send_beacon_cmd(mvm, beacon, &beacon_cmd, in iwl_mvm_mac_ctxt_send_beacon_v7()
1114 struct sk_buff *beacon, in iwl_mvm_mac_ctxt_send_beacon_v9() argument
1118 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(beacon); in iwl_mvm_mac_ctxt_send_beacon_v9()
1143 beacon_cmd.byte_cnt = cpu_to_le16((u16)beacon->len); in iwl_mvm_mac_ctxt_send_beacon_v9()
1157 beacon->data, beacon->len); in iwl_mvm_mac_ctxt_send_beacon_v9()
1160 cpu_to_le32(iwl_mvm_find_ie_offset(beacon->data, in iwl_mvm_mac_ctxt_send_beacon_v9()
1162 beacon->len)); in iwl_mvm_mac_ctxt_send_beacon_v9()
1164 cpu_to_le32(iwl_mvm_find_ie_offset(beacon->data, in iwl_mvm_mac_ctxt_send_beacon_v9()
1166 beacon->len)); in iwl_mvm_mac_ctxt_send_beacon_v9()
1171 cpu_to_le32(iwl_mvm_find_ie_offset(beacon->data, in iwl_mvm_mac_ctxt_send_beacon_v9()
1173 beacon->len)); in iwl_mvm_mac_ctxt_send_beacon_v9()
1175 return iwl_mvm_mac_ctxt_send_beacon_cmd(mvm, beacon, &beacon_cmd, in iwl_mvm_mac_ctxt_send_beacon_v9()
1181 struct sk_buff *beacon, in iwl_mvm_mac_ctxt_send_beacon() argument
1184 if (WARN_ON(!beacon)) in iwl_mvm_mac_ctxt_send_beacon()
1192 return iwl_mvm_mac_ctxt_send_beacon_v6(mvm, vif, beacon); in iwl_mvm_mac_ctxt_send_beacon()
1196 return iwl_mvm_mac_ctxt_send_beacon_v9(mvm, vif, beacon, in iwl_mvm_mac_ctxt_send_beacon()
1199 return iwl_mvm_mac_ctxt_send_beacon_v7(mvm, vif, beacon); in iwl_mvm_mac_ctxt_send_beacon()
1207 struct sk_buff *beacon; in iwl_mvm_mac_ctxt_beacon_changed() local
1213 beacon = ieee80211_beacon_get_template(mvm->hw, vif, NULL, in iwl_mvm_mac_ctxt_beacon_changed()
1215 if (!beacon) in iwl_mvm_mac_ctxt_beacon_changed()
1220 dev_kfree_skb(beacon); in iwl_mvm_mac_ctxt_beacon_changed()
1225 ret = iwl_mvm_mac_ctxt_send_beacon(mvm, vif, beacon, link_conf); in iwl_mvm_mac_ctxt_beacon_changed()
1226 dev_kfree_skb(beacon); in iwl_mvm_mac_ctxt_beacon_changed()
1519 struct iwl_extended_beacon_notif *beacon = (void *)pkt->data; in iwl_mvm_rx_beacon_notif() local
1528 mvm->ap_last_beacon_gp2 = le32_to_cpu(beacon->gp2); in iwl_mvm_rx_beacon_notif()
1543 le64_to_cpu(beacon->tsf), in iwl_mvm_rx_beacon_notif()
1547 if (unlikely(pkt_len < sizeof(*beacon))) in iwl_mvm_rx_beacon_notif()
1550 mvm->ibss_manager = beacon->ibss_mgr_status != 0; in iwl_mvm_rx_beacon_notif()
1551 status = le32_to_cpu(beacon->status) & TX_STATUS_MSK; in iwl_mvm_rx_beacon_notif()
1554 status, le64_to_cpu(beacon->tsf), in iwl_mvm_rx_beacon_notif()