]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/utils/radiotap.c
tests: HE AP parameters
[thirdparty/hostap.git] / src / utils / radiotap.c
index f8f815a86be923531244232c85d025a08b2c2ae4..71996eb7908f5e29b9a48f25ee03336d2a250917 100644 (file)
@@ -13,8 +13,8 @@
  *
  * See COPYING for more details.
  */
-#include "radiotap_iter.h"
 #include "platform.h"
+#include "radiotap_iter.h"
 
 /* function prototypes and related defs are in radiotap_iter.h */
 
@@ -123,13 +123,13 @@ int ieee80211_radiotap_iterator_init(
 
        /* find payload start allowing for extended bitmap(s) */
 
-       if (iterator->_bitmap_shifter & (1<<IEEE80211_RADIOTAP_EXT)) {
+       if (iterator->_bitmap_shifter & BIT(IEEE80211_RADIOTAP_EXT)) {
                if ((unsigned long)iterator->_arg -
                    (unsigned long)iterator->_rtheader + sizeof(uint32_t) >
                    (unsigned long)iterator->_max_length)
                        return -EINVAL;
                while (get_unaligned_le32(iterator->_arg) &
-                                       (1 << IEEE80211_RADIOTAP_EXT)) {
+                      BIT(IEEE80211_RADIOTAP_EXT)) {
                        iterator->_arg += sizeof(uint32_t);
 
                        /*