ieee802154: dgram: cleanup set of broadcast panid
authorAlexander Aring <alex.aring@gmail.com>
Thu, 20 Mar 2014 13:57:03 +0000 (14:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 21:19:45 +0000 (17:19 -0400)
This patch is only a cleanup to use the right define for a panid field.
The broadcast address and panid broadcast is still the same value.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Cc: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/dgram.c

index 6d251a35bdc419f2919aa59e0ac15ef0f8eb2a2f..786437bc0c08531785d3f5fa1deb5bff8efe9e62 100644 (file)
@@ -74,7 +74,7 @@ static int dgram_init(struct sock *sk)
        struct dgram_sock *ro = dgram_sk(sk);
 
        ro->dst_addr.mode = IEEE802154_ADDR_LONG;
-       ro->dst_addr.pan_id = cpu_to_le16(IEEE802154_ADDR_BROADCAST);
+       ro->dst_addr.pan_id = cpu_to_le16(IEEE802154_PANID_BROADCAST);
        ro->want_ack = 1;
        memset(&ro->dst_addr.extended_addr, 0xff, IEEE802154_ADDR_LEN);
        return 0;