mac802154: fix typo IEEE802515 to IEEE802154
authorAlexander Aring <alex.aring@gmail.com>
Sat, 25 Oct 2014 03:25:09 +0000 (05:25 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 06:07:30 +0000 (08:07 +0200)
This patch fixs a typo in address filter defines from IEEE802515 to
IEEE802154.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Cc: Alan Ott <alan@signal11.us>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c
drivers/net/ieee802154/cc2520.c
drivers/net/ieee802154/mrf24j40.c
include/net/mac802154.h
net/mac802154/mib.c

index b8b1e40feeb89e52a78c1031155e76731e10c764..83a635f173671b1cb174b7d791dafb79bebe76bb 100644 (file)
@@ -1097,7 +1097,7 @@ at86rf230_set_hw_addr_filt(struct ieee802154_dev *dev,
 {
        struct at86rf230_local *lp = dev->priv;
 
-       if (changed & IEEE802515_AFILT_SADDR_CHANGED) {
+       if (changed & IEEE802154_AFILT_SADDR_CHANGED) {
                u16 addr = le16_to_cpu(filt->short_addr);
 
                dev_vdbg(&lp->spi->dev,
@@ -1106,7 +1106,7 @@ at86rf230_set_hw_addr_filt(struct ieee802154_dev *dev,
                __at86rf230_write(lp, RG_SHORT_ADDR_1, addr >> 8);
        }
 
-       if (changed & IEEE802515_AFILT_PANID_CHANGED) {
+       if (changed & IEEE802154_AFILT_PANID_CHANGED) {
                u16 pan = le16_to_cpu(filt->pan_id);
 
                dev_vdbg(&lp->spi->dev,
@@ -1115,7 +1115,7 @@ at86rf230_set_hw_addr_filt(struct ieee802154_dev *dev,
                __at86rf230_write(lp, RG_PAN_ID_1, pan >> 8);
        }
 
-       if (changed & IEEE802515_AFILT_IEEEADDR_CHANGED) {
+       if (changed & IEEE802154_AFILT_IEEEADDR_CHANGED) {
                u8 i, addr[8];
 
                memcpy(addr, &filt->ieee_addr, 8);
@@ -1125,7 +1125,7 @@ at86rf230_set_hw_addr_filt(struct ieee802154_dev *dev,
                        __at86rf230_write(lp, RG_IEEE_ADDR_0 + i, addr[i]);
        }
 
-       if (changed & IEEE802515_AFILT_PANC_CHANGED) {
+       if (changed & IEEE802154_AFILT_PANC_CHANGED) {
                dev_vdbg(&lp->spi->dev,
                        "at86rf230_set_hw_addr_filt called for panc change\n");
                if (filt->pan_coord)
index 8a5ac7ab2300008ef2c8839272eb72b5eae1759c..571f280204b6c51709b0cbe30aeef52a79a76f41 100644 (file)
@@ -593,7 +593,7 @@ cc2520_filter(struct ieee802154_dev *dev,
 {
        struct cc2520_private *priv = dev->priv;
 
-       if (changed & IEEE802515_AFILT_PANID_CHANGED) {
+       if (changed & IEEE802154_AFILT_PANID_CHANGED) {
                u16 panid = le16_to_cpu(filt->pan_id);
 
                dev_vdbg(&priv->spi->dev,
@@ -602,7 +602,7 @@ cc2520_filter(struct ieee802154_dev *dev,
                                 sizeof(panid), (u8 *)&panid);
        }
 
-       if (changed & IEEE802515_AFILT_IEEEADDR_CHANGED) {
+       if (changed & IEEE802154_AFILT_IEEEADDR_CHANGED) {
                dev_vdbg(&priv->spi->dev,
                         "cc2520_filter called for IEEE addr\n");
                cc2520_write_ram(priv, CC2520RAM_IEEEADDR,
@@ -610,7 +610,7 @@ cc2520_filter(struct ieee802154_dev *dev,
                                 (u8 *)&filt->ieee_addr);
        }
 
-       if (changed & IEEE802515_AFILT_SADDR_CHANGED) {
+       if (changed & IEEE802154_AFILT_SADDR_CHANGED) {
                u16 addr = le16_to_cpu(filt->short_addr);
 
                dev_vdbg(&priv->spi->dev,
@@ -619,7 +619,7 @@ cc2520_filter(struct ieee802154_dev *dev,
                                 sizeof(addr), (u8 *)&addr);
        }
 
-       if (changed & IEEE802515_AFILT_PANC_CHANGED) {
+       if (changed & IEEE802154_AFILT_PANC_CHANGED) {
                dev_vdbg(&priv->spi->dev,
                         "cc2520_filter called for panc change\n");
                if (filt->pan_coord)
index ba9a3960d26d14e55fd5b3717651f3d454e1f9ae..0006b9ad5127251ccb605883fb350ca3fbd31754 100644 (file)
@@ -462,7 +462,7 @@ static int mrf24j40_filter(struct ieee802154_dev *dev,
 
        dev_dbg(printdev(devrec), "filter\n");
 
-       if (changed & IEEE802515_AFILT_SADDR_CHANGED) {
+       if (changed & IEEE802154_AFILT_SADDR_CHANGED) {
                /* Short Addr */
                u8 addrh, addrl;
 
@@ -475,7 +475,7 @@ static int mrf24j40_filter(struct ieee802154_dev *dev,
                        "Set short addr to %04hx\n", filt->short_addr);
        }
 
-       if (changed & IEEE802515_AFILT_IEEEADDR_CHANGED) {
+       if (changed & IEEE802154_AFILT_IEEEADDR_CHANGED) {
                /* Device Address */
                u8 i, addr[8];
 
@@ -491,7 +491,7 @@ static int mrf24j40_filter(struct ieee802154_dev *dev,
 #endif
        }
 
-       if (changed & IEEE802515_AFILT_PANID_CHANGED) {
+       if (changed & IEEE802154_AFILT_PANID_CHANGED) {
                /* PAN ID */
                u8 panidl, panidh;
 
@@ -503,7 +503,7 @@ static int mrf24j40_filter(struct ieee802154_dev *dev,
                dev_dbg(printdev(devrec), "Set PANID to %04hx\n", filt->pan_id);
        }
 
-       if (changed & IEEE802515_AFILT_PANC_CHANGED) {
+       if (changed & IEEE802154_AFILT_PANC_CHANGED) {
                /* Pan Coordinator */
                u8 val;
                int ret;
index f95b98ec50a8bcff9deb724b0099da51cfdafd4a..70351de3a72c56fec1edc9a004c477679769cee5 100644 (file)
  */
 
 /* indicates that the Short Address changed */
-#define IEEE802515_AFILT_SADDR_CHANGED         0x00000001
+#define IEEE802154_AFILT_SADDR_CHANGED         0x00000001
 /* indicates that the IEEE Address changed */
-#define IEEE802515_AFILT_IEEEADDR_CHANGED      0x00000002
+#define IEEE802154_AFILT_IEEEADDR_CHANGED      0x00000002
 /* indicates that the PAN ID changed */
-#define IEEE802515_AFILT_PANID_CHANGED         0x00000004
+#define IEEE802154_AFILT_PANID_CHANGED         0x00000004
 /* indicates that PAN Coordinator status changed */
-#define        IEEE802515_AFILT_PANC_CHANGED           0x00000008
+#define IEEE802154_AFILT_PANC_CHANGED          0x00000008
 
 struct ieee802154_hw_addr_filt {
        __le16  pan_id;         /* Each independent PAN selects a unique
index d7e5df872be763496e2e48cf55f83ebd4dae47b0..3ee604292238afa1a61d0308bdd6cbae786d8fbb 100644 (file)
@@ -89,7 +89,7 @@ void mac802154_dev_set_short_addr(struct net_device *dev, __le16 val)
        if ((priv->hw->ops->set_hw_addr_filt) &&
            (priv->hw->hw.hw_filt.short_addr != priv->short_addr)) {
                priv->hw->hw.hw_filt.short_addr = priv->short_addr;
-               set_hw_addr_filt(dev, IEEE802515_AFILT_SADDR_CHANGED);
+               set_hw_addr_filt(dev, IEEE802154_AFILT_SADDR_CHANGED);
        }
 }
 
@@ -117,7 +117,7 @@ void mac802154_dev_set_ieee_addr(struct net_device *dev)
        if (mac->ops->set_hw_addr_filt &&
            mac->hw.hw_filt.ieee_addr != priv->extended_addr) {
                mac->hw.hw_filt.ieee_addr = priv->extended_addr;
-               set_hw_addr_filt(dev, IEEE802515_AFILT_IEEEADDR_CHANGED);
+               set_hw_addr_filt(dev, IEEE802154_AFILT_IEEEADDR_CHANGED);
        }
 }
 
@@ -148,7 +148,7 @@ void mac802154_dev_set_pan_id(struct net_device *dev, __le16 val)
        if ((priv->hw->ops->set_hw_addr_filt) &&
            (priv->hw->hw.hw_filt.pan_id != priv->pan_id)) {
                priv->hw->hw.hw_filt.pan_id = priv->pan_id;
-               set_hw_addr_filt(dev, IEEE802515_AFILT_PANID_CHANGED);
+               set_hw_addr_filt(dev, IEEE802154_AFILT_PANID_CHANGED);
        }
 }