aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac802154/iface.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-25 11:16:38 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-10-25 15:55:38 -0400
commitd98be45b3657fc233f5a098279a4e42ab6f0fa4f (patch)
tree3014bbeb14981bb3b3c4b913a09c6a44eeb5f8bb /net/mac802154/iface.c
parent04e850fe06312a9f570fcc7dbd0f141c012df404 (diff)
mac802154: rename sdata slaves and slaves_mtx
This patch renamens the slaves attribute in sdata to interfaces and slaves_mtx to iflist_mtx. This is similar like the mac80211 stack naming convention. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/iface.c')
-rw-r--r--net/mac802154/iface.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
index 6eace90da3ed..c0dbb402b99b 100644
--- a/net/mac802154/iface.c
+++ b/net/mac802154/iface.c
@@ -125,9 +125,9 @@ int mac802154_set_mac_params(struct net_device *dev,
125{ 125{
126 struct ieee802154_sub_if_data *sdata = netdev_priv(dev); 126 struct ieee802154_sub_if_data *sdata = netdev_priv(dev);
127 127
128 mutex_lock(&sdata->local->slaves_mtx); 128 mutex_lock(&sdata->local->iflist_mtx);
129 sdata->mac_params = *params; 129 sdata->mac_params = *params;
130 mutex_unlock(&sdata->local->slaves_mtx); 130 mutex_unlock(&sdata->local->iflist_mtx);
131 131
132 return 0; 132 return 0;
133} 133}
@@ -137,9 +137,9 @@ void mac802154_get_mac_params(struct net_device *dev,
137{ 137{
138 struct ieee802154_sub_if_data *sdata = netdev_priv(dev); 138 struct ieee802154_sub_if_data *sdata = netdev_priv(dev);
139 139
140 mutex_lock(&sdata->local->slaves_mtx); 140 mutex_lock(&sdata->local->iflist_mtx);
141 *params = sdata->mac_params; 141 *params = sdata->mac_params;
142 mutex_unlock(&sdata->local->slaves_mtx); 142 mutex_unlock(&sdata->local->iflist_mtx);
143} 143}
144 144
145static int mac802154_wpan_open(struct net_device *dev) 145static int mac802154_wpan_open(struct net_device *dev)
@@ -580,7 +580,7 @@ void mac802154_wpans_rx(struct ieee802154_local *local, struct sk_buff *skb)
580 } 580 }
581 581
582 rcu_read_lock(); 582 rcu_read_lock();
583 list_for_each_entry_rcu(sdata, &local->slaves, list) { 583 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
584 if (sdata->type != IEEE802154_DEV_WPAN || 584 if (sdata->type != IEEE802154_DEV_WPAN ||
585 !netif_running(sdata->dev)) 585 !netif_running(sdata->dev))
586 continue; 586 continue;