Lines Matching full:beacon

20 			 u8 *beacon, u32 frame_size)  in iwl_mld_set_tim_idx()  argument
23 struct ieee80211_mgmt *mgmt = (void *)beacon; in iwl_mld_set_tim_idx()
26 * variable-length part of the beacon. in iwl_mld_set_tim_idx()
28 tim_idx = mgmt->u.beacon.variable - beacon; in iwl_mld_set_tim_idx()
30 /* Parse variable-length elements of beacon to find WLAN_EID_TIM */ in iwl_mld_set_tim_idx()
32 (beacon[tim_idx] != WLAN_EID_TIM)) in iwl_mld_set_tim_idx()
33 tim_idx += beacon[tim_idx + 1] + 2; in iwl_mld_set_tim_idx()
36 if ((tim_idx < (frame_size - 1)) && beacon[tim_idx] == WLAN_EID_TIM) in iwl_mld_set_tim_idx()
39 IWL_WARN(mld, "Unable to find TIM Element in beacon\n"); in iwl_mld_set_tim_idx()
51 /* if beacon rate was configured try using it */ in iwl_mld_get_rate_flags()
75 struct sk_buff *beacon, in iwl_mld_send_beacon_template_cmd() argument
85 hcmd.len[1] = beacon->len; in iwl_mld_send_beacon_template_cmd()
86 hcmd.data[1] = beacon->data; in iwl_mld_send_beacon_template_cmd()
94 struct sk_buff *beacon, in iwl_mld_fill_beacon_template_cmd() argument
99 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(beacon); in iwl_mld_fill_beacon_template_cmd()
125 cmd->byte_cnt = cpu_to_le16((u16)beacon->len); in iwl_mld_fill_beacon_template_cmd()
134 beacon->data, beacon->len); in iwl_mld_fill_beacon_template_cmd()
137 cpu_to_le32(iwl_find_ie_offset(beacon->data, in iwl_mld_fill_beacon_template_cmd()
139 beacon->len)); in iwl_mld_fill_beacon_template_cmd()
143 cpu_to_le32(iwl_find_ie_offset(beacon->data, in iwl_mld_fill_beacon_template_cmd()
145 beacon->len)); in iwl_mld_fill_beacon_template_cmd()
147 cpu_to_le32(iwl_find_ie_offset(beacon->data, in iwl_mld_fill_beacon_template_cmd()
149 beacon->len)); in iwl_mld_fill_beacon_template_cmd()
154 /* The beacon template for the AP/GO/IBSS has changed and needs update */
160 struct sk_buff *beacon; in iwl_mld_update_beacon_template() local
175 "Can't update template, beacon injection's active\n"); in iwl_mld_update_beacon_template()
180 beacon = ieee80211_beacon_get_template(mld->hw, vif, NULL, in iwl_mld_update_beacon_template()
182 if (!beacon) in iwl_mld_update_beacon_template()
185 ret = iwl_mld_fill_beacon_template_cmd(mld, vif, beacon, &cmd, in iwl_mld_update_beacon_template()
189 ret = iwl_mld_send_beacon_template_cmd(mld, beacon, &cmd); in iwl_mld_update_beacon_template()
191 dev_kfree_skb(beacon); in iwl_mld_update_beacon_template()