wlan_common/mac/ctrl/fields.rs
1// Copyright 2019 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use ieee80211::{Bssid, MacAddr};
6use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout, Unaligned};
7
8// IEEE Std 802.11-2016, 9.3.1.5
9#[derive(
10 KnownLayout, FromBytes, IntoBytes, Immutable, Unaligned, PartialEq, Eq, Clone, Copy, Debug,
11)]
12#[repr(C, packed)]
13pub struct PsPoll {
14 pub masked_aid: u16,
15 pub bssid: Bssid,
16 pub ta: MacAddr,
17}