Lines Matching refs:meshhdr
413 * @meshhdr: uninitialized mesh header
424 int ieee80211_new_mesh_header(struct ieee80211s_hdr *meshhdr,
429 memset(meshhdr, 0, sizeof(*meshhdr));
430 meshhdr->ttl = sdata->u.mesh.mshcfg.dot11MeshTTL;
431 put_unaligned(cpu_to_le32(sdata->u.mesh.mesh_seqnum), &meshhdr->seqnum);
434 meshhdr->flags |= MESH_FLAGS_AE_A4;
436 memcpy(meshhdr->eaddr1, addr4, ETH_ALEN);
439 meshhdr->flags |= MESH_FLAGS_AE_A5_A6;
442 memcpy(meshhdr->eaddr1, addr5, ETH_ALEN);
443 memcpy(meshhdr->eaddr2, addr6, ETH_ALEN);
445 memcpy(meshhdr->eaddr2, addr5, ETH_ALEN);
446 memcpy(meshhdr->eaddr3, addr6, ETH_ALEN);