mac802154: fix flags BIT definitions order
authorAlexander Aring <alex.aring@gmail.com>
Fri, 12 Jun 2015 07:24:00 +0000 (09:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 12 Jun 2015 09:43:58 +0000 (11:43 +0200)
This patch fixes commits ("mac802154: cleanup ieee802154 hardware flags")
bcbfd2078d9b11277d9c9ce0c30ba73c750503c9 and ("mac802154: cleanup address
filtering flags") 6b70a43c7e0202cf285c864bc9f20f607c42e432 by starting
the flags definitions at BIT(0) which is same like the previous behaviour.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/mac802154.h

index de1cdde92edc113da9da67d301681af070ffc262..f534a46911dc3967e78700f30f8e7e47ca9acec8 100644 (file)
  *     do frame address filtering as a pan coordinator.
  */
 enum ieee802154_hw_addr_filt_flags {
-       IEEE802154_AFILT_SADDR_CHANGED          = BIT(1),
-       IEEE802154_AFILT_IEEEADDR_CHANGED       = BIT(2),
-       IEEE802154_AFILT_PANID_CHANGED          = BIT(3),
-       IEEE802154_AFILT_PANC_CHANGED           = BIT(4),
+       IEEE802154_AFILT_SADDR_CHANGED          = BIT(0),
+       IEEE802154_AFILT_IEEEADDR_CHANGED       = BIT(1),
+       IEEE802154_AFILT_PANID_CHANGED          = BIT(2),
+       IEEE802154_AFILT_PANC_CHANGED           = BIT(3),
 };
 
 /**
@@ -133,14 +133,14 @@ struct ieee802154_hw {
  *     frames with bad checksum.
  */
 enum ieee802154_hw_flags {
-       IEEE802154_HW_TX_OMIT_CKSUM     = BIT(1),
-       IEEE802154_HW_LBT               = BIT(2),
-       IEEE802154_HW_CSMA_PARAMS       = BIT(3),
-       IEEE802154_HW_FRAME_RETRIES     = BIT(4),
-       IEEE802154_HW_AFILT             = BIT(5),
-       IEEE802154_HW_PROMISCUOUS       = BIT(6),
-       IEEE802154_HW_RX_OMIT_CKSUM     = BIT(7),
-       IEEE802154_HW_RX_DROP_BAD_CKSUM = BIT(8),
+       IEEE802154_HW_TX_OMIT_CKSUM     = BIT(0),
+       IEEE802154_HW_LBT               = BIT(1),
+       IEEE802154_HW_CSMA_PARAMS       = BIT(2),
+       IEEE802154_HW_FRAME_RETRIES     = BIT(3),
+       IEEE802154_HW_AFILT             = BIT(4),
+       IEEE802154_HW_PROMISCUOUS       = BIT(5),
+       IEEE802154_HW_RX_OMIT_CKSUM     = BIT(6),
+       IEEE802154_HW_RX_DROP_BAD_CKSUM = BIT(7),
 };
 
 /* Indicates that receiver omits FCS and xmitter will add FCS on it's own. */