aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-02 15:43:06 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-11-02 15:52:03 -0500
commit868ed8e06a35ea2e73dfe4cb81d96dc85f545a8e (patch)
tree1396489dc6a45fc1f15b7a24c4ac70612248da84 /net/mac802154
parentfdd2068ab7574d9d9b966a97cc7af296a4232694 (diff)
ieee802154: remove unnecessary functions
This patch fixes commit c7420c367d63a7e1414e010afb52c3837fd9134e ("mac802154: move mac_params functions into mac_cmd"). The mac_params functions wasn't deleted by this commit. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Reported-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154')
-rw-r--r--net/mac802154/iface.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
index ceedf3ef1ce2..0c9d00c83654 100644
--- a/net/mac802154/iface.c
+++ b/net/mac802154/iface.c
@@ -127,28 +127,6 @@ static int mac802154_wpan_mac_addr(struct net_device *dev, void *p)
127 return mac802154_wpan_update_llsec(dev); 127 return mac802154_wpan_update_llsec(dev);
128} 128}
129 129
130int mac802154_set_mac_params(struct net_device *dev,
131 const struct ieee802154_mac_params *params)
132{
133 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev);
134
135 mutex_lock(&sdata->local->iflist_mtx);
136 sdata->mac_params = *params;
137 mutex_unlock(&sdata->local->iflist_mtx);
138
139 return 0;
140}
141
142void mac802154_get_mac_params(struct net_device *dev,
143 struct ieee802154_mac_params *params)
144{
145 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev);
146
147 mutex_lock(&sdata->local->iflist_mtx);
148 *params = sdata->mac_params;
149 mutex_unlock(&sdata->local->iflist_mtx);
150}
151
152static int mac802154_slave_open(struct net_device *dev) 130static int mac802154_slave_open(struct net_device *dev)
153{ 131{
154 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); 132 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev);