diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-05-22 11:43:53 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-05-23 11:57:08 -0400 |
commit | 344f8c119df742f2bf7098cf8fc326351f583249 (patch) | |
tree | 032162247fc24529b2809f4e3a914e66ef836400 /include/net/cfg802154.h | |
parent | 4a3a8c0c3a613e481bea931f0d65dc4a7efaa9b9 (diff) |
mac802154: use atomic ops for sequence incrementation
This patch will use atomic operations for sequence number incrementation
while MAC header generation. Upper layers like af_802154 or 6LoWPAN
could call this function in a parallel context while generating 802.15.4
MAC header before queuing into wpan interfaces transmit queue.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/cfg802154.h')
-rw-r--r-- | include/net/cfg802154.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/cfg802154.h b/include/net/cfg802154.h index c6aa1d210182..4de59aa96173 100644 --- a/include/net/cfg802154.h +++ b/include/net/cfg802154.h | |||
@@ -177,9 +177,9 @@ struct wpan_dev { | |||
177 | __le64 extended_addr; | 177 | __le64 extended_addr; |
178 | 178 | ||
179 | /* MAC BSN field */ | 179 | /* MAC BSN field */ |
180 | u8 bsn; | 180 | atomic_t bsn; |
181 | /* MAC DSN field */ | 181 | /* MAC DSN field */ |
182 | u8 dsn; | 182 | atomic_t dsn; |
183 | 183 | ||
184 | u8 min_be; | 184 | u8 min_be; |
185 | u8 max_be; | 185 | u8 max_be; |