* [PATCH bluetooth-next] mac802154: cleanup llsec param flags
@ 2015-06-12 3:43 Varka Bhadram
2015-06-12 7:11 ` Alexander Aring
2015-06-12 9:43 ` Marcel Holtmann
0 siblings, 2 replies; 3+ messages in thread
From: Varka Bhadram @ 2015-06-12 3:43 UTC (permalink / raw)
To: linux-wpan; +Cc: alex.aring, Varka Bhadram
This patch changes the setting of llsec param flag with the BIT macro.
Signed-off-by: Varka Bhadram <varkab@cdac.in>
---
include/net/ieee802154_netdev.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h
index 0a87975..2c10a9f 100644
--- a/include/net/ieee802154_netdev.h
+++ b/include/net/ieee802154_netdev.h
@@ -346,15 +346,15 @@ struct ieee802154_mac_params {
struct wpan_phy;
enum {
- IEEE802154_LLSEC_PARAM_ENABLED = 1 << 0,
- IEEE802154_LLSEC_PARAM_FRAME_COUNTER = 1 << 1,
- IEEE802154_LLSEC_PARAM_OUT_LEVEL = 1 << 2,
- IEEE802154_LLSEC_PARAM_OUT_KEY = 1 << 3,
- IEEE802154_LLSEC_PARAM_KEY_SOURCE = 1 << 4,
- IEEE802154_LLSEC_PARAM_PAN_ID = 1 << 5,
- IEEE802154_LLSEC_PARAM_HWADDR = 1 << 6,
- IEEE802154_LLSEC_PARAM_COORD_HWADDR = 1 << 7,
- IEEE802154_LLSEC_PARAM_COORD_SHORTADDR = 1 << 8,
+ IEEE802154_LLSEC_PARAM_ENABLED = BIT(0),
+ IEEE802154_LLSEC_PARAM_FRAME_COUNTER = BIT(1),
+ IEEE802154_LLSEC_PARAM_OUT_LEVEL = BIT(2),
+ IEEE802154_LLSEC_PARAM_OUT_KEY = BIT(3),
+ IEEE802154_LLSEC_PARAM_KEY_SOURCE = BIT(4),
+ IEEE802154_LLSEC_PARAM_PAN_ID = BIT(5),
+ IEEE802154_LLSEC_PARAM_HWADDR = BIT(6),
+ IEEE802154_LLSEC_PARAM_COORD_HWADDR = BIT(7),
+ IEEE802154_LLSEC_PARAM_COORD_SHORTADDR = BIT(8),
};
struct ieee802154_llsec_ops {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH bluetooth-next] mac802154: cleanup llsec param flags
2015-06-12 3:43 [PATCH bluetooth-next] mac802154: cleanup llsec param flags Varka Bhadram
@ 2015-06-12 7:11 ` Alexander Aring
2015-06-12 9:43 ` Marcel Holtmann
1 sibling, 0 replies; 3+ messages in thread
From: Alexander Aring @ 2015-06-12 7:11 UTC (permalink / raw)
To: Varka Bhadram; +Cc: linux-wpan, Varka Bhadram
On Fri, Jun 12, 2015 at 09:13:49AM +0530, Varka Bhadram wrote:
> This patch changes the setting of llsec param flag with the BIT macro.
>
> Signed-off-by: Varka Bhadram <varkab@cdac.in>
Acked-by: Alexander Aring <alex.aring@gmail.com>
doh, see now that I didn't started at BIT(0) in the hw and addr_filt
flags.
- Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH bluetooth-next] mac802154: cleanup llsec param flags
2015-06-12 3:43 [PATCH bluetooth-next] mac802154: cleanup llsec param flags Varka Bhadram
2015-06-12 7:11 ` Alexander Aring
@ 2015-06-12 9:43 ` Marcel Holtmann
1 sibling, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2015-06-12 9:43 UTC (permalink / raw)
To: Varka Bhadram; +Cc: linux-wpan, alex.aring, Varka Bhadram
Hi Varka,
> This patch changes the setting of llsec param flag with the BIT macro.
>
> Signed-off-by: Varka Bhadram <varkab@cdac.in>
> ---
> include/net/ieee802154_netdev.h | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-12 9:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-12 3:43 [PATCH bluetooth-next] mac802154: cleanup llsec param flags Varka Bhadram
2015-06-12 7:11 ` Alexander Aring
2015-06-12 9:43 ` Marcel Holtmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.