diff options
Diffstat (limited to 'include/net/mac802154.h')
-rw-r--r-- | include/net/mac802154.h | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/include/net/mac802154.h b/include/net/mac802154.h index 80a9e60ceb0c..845e4f88a33e 100644 --- a/include/net/mac802154.h +++ b/include/net/mac802154.h | |||
@@ -31,18 +31,29 @@ | |||
31 | */ | 31 | */ |
32 | #define MAC802154_FRAME_HARD_HEADER_LEN (2 + 1 + 20 + 14) | 32 | #define MAC802154_FRAME_HARD_HEADER_LEN (2 + 1 + 20 + 14) |
33 | 33 | ||
34 | /* The following flags are used to indicate changed address settings from | 34 | /** |
35 | * enum ieee802154_hw_addr_filt_flags - hardware address filtering flags | ||
36 | * | ||
37 | * The following flags are used to indicate changed address settings from | ||
35 | * the stack to the hardware. | 38 | * the stack to the hardware. |
39 | * | ||
40 | * @IEEE802154_AFILT_SADDR_CHANGED: Indicates that the short address will be | ||
41 | * change. | ||
42 | * | ||
43 | * @IEEE802154_AFILT_IEEEADDR_CHANGED: Indicates that the extended address | ||
44 | * will be change. | ||
45 | * | ||
46 | * @IEEE802154_AFILT_PANID_CHANGED: Indicates that the pan id will be change. | ||
47 | * | ||
48 | * @IEEE802154_AFILT_PANC_CHANGED: Indicates that the address filter will | ||
49 | * do frame address filtering as a pan coordinator. | ||
36 | */ | 50 | */ |
37 | 51 | enum ieee802154_hw_addr_filt_flags { | |
38 | /* indicates that the Short Address changed */ | 52 | IEEE802154_AFILT_SADDR_CHANGED = BIT(1), |
39 | #define IEEE802154_AFILT_SADDR_CHANGED 0x00000001 | 53 | IEEE802154_AFILT_IEEEADDR_CHANGED = BIT(2), |
40 | /* indicates that the IEEE Address changed */ | 54 | IEEE802154_AFILT_PANID_CHANGED = BIT(3), |
41 | #define IEEE802154_AFILT_IEEEADDR_CHANGED 0x00000002 | 55 | IEEE802154_AFILT_PANC_CHANGED = BIT(4), |
42 | /* indicates that the PAN ID changed */ | 56 | }; |
43 | #define IEEE802154_AFILT_PANID_CHANGED 0x00000004 | ||
44 | /* indicates that PAN Coordinator status changed */ | ||
45 | #define IEEE802154_AFILT_PANC_CHANGED 0x00000008 | ||
46 | 57 | ||
47 | struct ieee802154_hw_addr_filt { | 58 | struct ieee802154_hw_addr_filt { |
48 | __le16 pan_id; /* Each independent PAN selects a unique | 59 | __le16 pan_id; /* Each independent PAN selects a unique |