Lines Matching refs:mgmt
164 struct ieee80211_mgmt *mgmt;
173 /* 25 is the size of the common mgmt part (24) plus the size of the
176 mgmt = (struct ieee80211_mgmt *)
177 skb_put(skb, 25 + sizeof(mgmt->u.action.u.plink_action));
178 memset(mgmt, 0, 25 + sizeof(mgmt->u.action.u.plink_action));
179 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT |
181 memcpy(mgmt->da, da, ETH_ALEN);
182 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN);
184 mgmt->u.action.category = WLAN_CATEGORY_MESH_PLINK;
185 mgmt->u.action.u.plink_action.action_code = action;
188 mgmt->u.action.u.plink_action.aux = reason;
190 mgmt->u.action.u.plink_action.aux = cpu_to_le16(0x0);
406 void mesh_rx_plink_frame(struct ieee80211_sub_if_data *sdata, struct ieee80211_mgmt *mgmt,
435 if (is_multicast_ether_addr(mgmt->da)) {
440 baseaddr = mgmt->u.action.u.plink_action.variable;
441 baselen = (u8 *) mgmt->u.action.u.plink_action.variable - (u8 *) mgmt;
442 if (mgmt->u.action.u.plink_action.action_code == PLINK_CONFIRM) {
452 ftype = mgmt->u.action.u.plink_action.action_code;
475 sta = sta_info_get(sdata, mgmt->sa);
508 mesh_plink_frame_tx(sdata, PLINK_CLOSE, mgmt->sa, llid,
523 sta = mesh_plink_alloc(sdata, mgmt->sa, rates);
581 mgmt->sa, mplstates[sta->plink_state],