2 * mac80211 configuration hooks for cfg80211
4 * Copyright 2006, 2007 Johannes Berg <johannes@sipsolutions.net>
6 * This file is GPLv2 as found in COPYING.
9 #include <linux/ieee80211.h>
10 #include <linux/nl80211.h>
11 #include <linux/rtnetlink.h>
12 #include <net/net_namespace.h>
13 #include <linux/rcupdate.h>
14 #include <net/cfg80211.h>
15 #include "ieee80211_i.h"
17 #include "ieee80211_rate.h"
20 #define DEFAULT_RATES 0
22 static enum ieee80211_if_types
23 nl80211_type_to_mac80211_type(enum nl80211_iftype type)
26 case NL80211_IFTYPE_UNSPECIFIED:
27 return IEEE80211_IF_TYPE_STA;
28 case NL80211_IFTYPE_ADHOC:
29 return IEEE80211_IF_TYPE_IBSS;
30 case NL80211_IFTYPE_STATION:
31 return IEEE80211_IF_TYPE_STA;
32 case NL80211_IFTYPE_MONITOR:
33 return IEEE80211_IF_TYPE_MNTR;
34 #ifdef CONFIG_MAC80211_MESH
35 case NL80211_IFTYPE_MESH_POINT:
36 return IEEE80211_IF_TYPE_MESH_POINT;
39 return IEEE80211_IF_TYPE_INVALID;
43 static int ieee80211_add_iface(struct wiphy *wiphy, char *name,
44 enum nl80211_iftype type, u32 *flags,
45 struct vif_params *params)
47 struct ieee80211_local *local = wiphy_priv(wiphy);
48 enum ieee80211_if_types itype;
49 struct net_device *dev;
50 struct ieee80211_sub_if_data *sdata;
53 if (unlikely(local->reg_state != IEEE80211_DEV_REGISTERED))
56 itype = nl80211_type_to_mac80211_type(type);
57 if (itype == IEEE80211_IF_TYPE_INVALID)
60 err = ieee80211_if_add(local->mdev, name, &dev, itype, params);
61 if (err || itype != IEEE80211_IF_TYPE_MNTR || !flags)
64 sdata = IEEE80211_DEV_TO_SUB_IF(dev);
65 sdata->u.mntr_flags = *flags;
69 static int ieee80211_del_iface(struct wiphy *wiphy, int ifindex)
71 struct ieee80211_local *local = wiphy_priv(wiphy);
72 struct net_device *dev;
75 if (unlikely(local->reg_state != IEEE80211_DEV_REGISTERED))
78 /* we're under RTNL */
79 dev = __dev_get_by_index(&init_net, ifindex);
85 return ieee80211_if_remove(local->mdev, name, -1);
88 static int ieee80211_change_iface(struct wiphy *wiphy, int ifindex,
89 enum nl80211_iftype type, u32 *flags,
90 struct vif_params *params)
92 struct ieee80211_local *local = wiphy_priv(wiphy);
93 struct net_device *dev;
94 enum ieee80211_if_types itype;
95 struct ieee80211_sub_if_data *sdata;
97 if (unlikely(local->reg_state != IEEE80211_DEV_REGISTERED))
100 /* we're under RTNL */
101 dev = __dev_get_by_index(&init_net, ifindex);
105 if (netif_running(dev))
108 itype = nl80211_type_to_mac80211_type(type);
109 if (itype == IEEE80211_IF_TYPE_INVALID)
112 sdata = IEEE80211_DEV_TO_SUB_IF(dev);
114 if (sdata->vif.type == IEEE80211_IF_TYPE_VLAN)
117 ieee80211_if_reinit(dev);
118 ieee80211_if_set_type(dev, itype);
120 if (ieee80211_vif_is_mesh(&sdata->vif) && params->mesh_id_len)
121 ieee80211_if_sta_set_mesh_id(&sdata->u.sta,
125 if (sdata->vif.type != IEEE80211_IF_TYPE_MNTR || !flags)
128 sdata->u.mntr_flags = *flags;
132 static int ieee80211_add_key(struct wiphy *wiphy, struct net_device *dev,
133 u8 key_idx, u8 *mac_addr,
134 struct key_params *params)
136 struct ieee80211_sub_if_data *sdata;
137 struct sta_info *sta = NULL;
138 enum ieee80211_key_alg alg;
139 struct ieee80211_key *key;
141 sdata = IEEE80211_DEV_TO_SUB_IF(dev);
143 switch (params->cipher) {
144 case WLAN_CIPHER_SUITE_WEP40:
145 case WLAN_CIPHER_SUITE_WEP104:
148 case WLAN_CIPHER_SUITE_TKIP:
151 case WLAN_CIPHER_SUITE_CCMP:
158 key = ieee80211_key_alloc(alg, key_idx, params->key_len, params->key);
163 sta = sta_info_get(sdata->local, mac_addr);
165 ieee80211_key_free(key);
170 ieee80211_key_link(key, sdata, sta);
175 static int ieee80211_del_key(struct wiphy *wiphy, struct net_device *dev,
176 u8 key_idx, u8 *mac_addr)
178 struct ieee80211_sub_if_data *sdata;
179 struct sta_info *sta;
182 sdata = IEEE80211_DEV_TO_SUB_IF(dev);
185 sta = sta_info_get(sdata->local, mac_addr);
191 ieee80211_key_free(sta->key);
199 if (!sdata->keys[key_idx])
202 ieee80211_key_free(sdata->keys[key_idx]);
203 WARN_ON(sdata->keys[key_idx]);
208 static int ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev,
209 u8 key_idx, u8 *mac_addr, void *cookie,
210 void (*callback)(void *cookie,
211 struct key_params *params))
213 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
214 struct sta_info *sta = NULL;
216 struct key_params params;
217 struct ieee80211_key *key;
223 sta = sta_info_get(sdata->local, mac_addr);
229 key = sdata->keys[key_idx];
234 memset(¶ms, 0, sizeof(params));
236 switch (key->conf.alg) {
238 params.cipher = WLAN_CIPHER_SUITE_TKIP;
240 iv32 = key->u.tkip.iv32;
241 iv16 = key->u.tkip.iv16;
243 if (key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE &&
244 sdata->local->ops->get_tkip_seq)
245 sdata->local->ops->get_tkip_seq(
246 local_to_hw(sdata->local),
247 key->conf.hw_key_idx,
250 seq[0] = iv16 & 0xff;
251 seq[1] = (iv16 >> 8) & 0xff;
252 seq[2] = iv32 & 0xff;
253 seq[3] = (iv32 >> 8) & 0xff;
254 seq[4] = (iv32 >> 16) & 0xff;
255 seq[5] = (iv32 >> 24) & 0xff;
260 params.cipher = WLAN_CIPHER_SUITE_CCMP;
261 seq[0] = key->u.ccmp.tx_pn[5];
262 seq[1] = key->u.ccmp.tx_pn[4];
263 seq[2] = key->u.ccmp.tx_pn[3];
264 seq[3] = key->u.ccmp.tx_pn[2];
265 seq[4] = key->u.ccmp.tx_pn[1];
266 seq[5] = key->u.ccmp.tx_pn[0];
271 if (key->conf.keylen == 5)
272 params.cipher = WLAN_CIPHER_SUITE_WEP40;
274 params.cipher = WLAN_CIPHER_SUITE_WEP104;
278 params.key = key->conf.key;
279 params.key_len = key->conf.keylen;
281 callback(cookie, ¶ms);
288 static int ieee80211_config_default_key(struct wiphy *wiphy,
289 struct net_device *dev,
292 struct ieee80211_sub_if_data *sdata;
294 sdata = IEEE80211_DEV_TO_SUB_IF(dev);
295 ieee80211_set_default_key(sdata, key_idx);
300 static void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo)
302 struct ieee80211_sub_if_data *sdata = sta->sdata;
304 sinfo->filled = STATION_INFO_INACTIVE_TIME |
305 STATION_INFO_RX_BYTES |
306 STATION_INFO_TX_BYTES;
308 sinfo->inactive_time = jiffies_to_msecs(jiffies - sta->last_rx);
309 sinfo->rx_bytes = sta->rx_bytes;
310 sinfo->tx_bytes = sta->tx_bytes;
312 if (ieee80211_vif_is_mesh(&sdata->vif)) {
313 #ifdef CONFIG_MAC80211_MESH
314 sinfo->filled |= STATION_INFO_LLID |
316 STATION_INFO_PLINK_STATE;
318 sinfo->llid = le16_to_cpu(sta->llid);
319 sinfo->plid = le16_to_cpu(sta->plid);
320 sinfo->plink_state = sta->plink_state;
326 static int ieee80211_dump_station(struct wiphy *wiphy, struct net_device *dev,
327 int idx, u8 *mac, struct station_info *sinfo)
329 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
330 struct sta_info *sta;
335 sta = sta_info_get_by_idx(local, idx, dev);
338 memcpy(mac, sta->addr, ETH_ALEN);
339 sta_set_sinfo(sta, sinfo);
347 static int ieee80211_get_station(struct wiphy *wiphy, struct net_device *dev,
348 u8 *mac, struct station_info *sinfo)
350 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
351 struct sta_info *sta;
356 /* XXX: verify sta->dev == dev */
358 sta = sta_info_get(local, mac);
361 sta_set_sinfo(sta, sinfo);
370 * This handles both adding a beacon and setting new beacon info
372 static int ieee80211_config_beacon(struct ieee80211_sub_if_data *sdata,
373 struct beacon_parameters *params)
375 struct beacon_data *new, *old;
376 int new_head_len, new_tail_len;
380 old = sdata->u.ap.beacon;
382 /* head must not be zero-length */
383 if (params->head && !params->head_len)
387 * This is a kludge. beacon interval should really be part
388 * of the beacon information.
390 if (params->interval) {
391 sdata->local->hw.conf.beacon_int = params->interval;
392 if (ieee80211_hw_config(sdata->local))
395 * We updated some parameter so if below bails out
401 /* Need to have a beacon head if we don't have one yet */
402 if (!params->head && !old)
405 /* sorry, no way to start beaconing without dtim period */
406 if (!params->dtim_period && !old)
409 /* new or old head? */
411 new_head_len = params->head_len;
413 new_head_len = old->head_len;
415 /* new or old tail? */
416 if (params->tail || !old)
417 /* params->tail_len will be zero for !params->tail */
418 new_tail_len = params->tail_len;
420 new_tail_len = old->tail_len;
422 size = sizeof(*new) + new_head_len + new_tail_len;
424 new = kzalloc(size, GFP_KERNEL);
428 /* start filling the new info now */
430 /* new or old dtim period? */
431 if (params->dtim_period)
432 new->dtim_period = params->dtim_period;
434 new->dtim_period = old->dtim_period;
437 * pointers go into the block we allocated,
438 * memory is | beacon_data | head | tail |
440 new->head = ((u8 *) new) + sizeof(*new);
441 new->tail = new->head + new_head_len;
442 new->head_len = new_head_len;
443 new->tail_len = new_tail_len;
447 memcpy(new->head, params->head, new_head_len);
449 memcpy(new->head, old->head, new_head_len);
451 /* copy in optional tail */
453 memcpy(new->tail, params->tail, new_tail_len);
456 memcpy(new->tail, old->tail, new_tail_len);
458 rcu_assign_pointer(sdata->u.ap.beacon, new);
464 return ieee80211_if_config_beacon(sdata->dev);
467 static int ieee80211_add_beacon(struct wiphy *wiphy, struct net_device *dev,
468 struct beacon_parameters *params)
470 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
471 struct beacon_data *old;
473 if (sdata->vif.type != IEEE80211_IF_TYPE_AP)
476 old = sdata->u.ap.beacon;
481 return ieee80211_config_beacon(sdata, params);
484 static int ieee80211_set_beacon(struct wiphy *wiphy, struct net_device *dev,
485 struct beacon_parameters *params)
487 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
488 struct beacon_data *old;
490 if (sdata->vif.type != IEEE80211_IF_TYPE_AP)
493 old = sdata->u.ap.beacon;
498 return ieee80211_config_beacon(sdata, params);
501 static int ieee80211_del_beacon(struct wiphy *wiphy, struct net_device *dev)
503 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
504 struct beacon_data *old;
506 if (sdata->vif.type != IEEE80211_IF_TYPE_AP)
509 old = sdata->u.ap.beacon;
514 rcu_assign_pointer(sdata->u.ap.beacon, NULL);
518 return ieee80211_if_config_beacon(dev);
521 /* Layer 2 Update frame (802.2 Type 1 LLC XID Update response) */
522 struct iapp_layer2_update {
523 u8 da[ETH_ALEN]; /* broadcast */
524 u8 sa[ETH_ALEN]; /* STA addr */
530 } __attribute__ ((packed));
532 static void ieee80211_send_layer2_update(struct sta_info *sta)
534 struct iapp_layer2_update *msg;
537 /* Send Level 2 Update Frame to update forwarding tables in layer 2
540 skb = dev_alloc_skb(sizeof(*msg));
543 msg = (struct iapp_layer2_update *)skb_put(skb, sizeof(*msg));
545 /* 802.2 Type 1 Logical Link Control (LLC) Exchange Identifier (XID)
546 * Update response frame; IEEE Std 802.2-1998, 5.4.1.2.1 */
548 memset(msg->da, 0xff, ETH_ALEN);
549 memcpy(msg->sa, sta->addr, ETH_ALEN);
552 msg->ssap = 0x01; /* NULL LSAP, CR Bit: Response */
553 msg->control = 0xaf; /* XID response lsb.1111F101.
554 * F=0 (no poll command; unsolicited frame) */
555 msg->xid_info[0] = 0x81; /* XID format identifier */
556 msg->xid_info[1] = 1; /* LLC types/classes: Type 1 LLC */
557 msg->xid_info[2] = 0; /* XID sender's receive window size (RW) */
559 skb->dev = sta->sdata->dev;
560 skb->protocol = eth_type_trans(skb, sta->sdata->dev);
561 memset(skb->cb, 0, sizeof(skb->cb));
565 static void sta_apply_parameters(struct ieee80211_local *local,
566 struct sta_info *sta,
567 struct station_parameters *params)
571 struct ieee80211_supported_band *sband;
572 struct ieee80211_sub_if_data *sdata = sta->sdata;
575 * FIXME: updating the flags is racy when this function is
576 * called from ieee80211_change_station(), this will
577 * be resolved in a future patch.
580 if (params->station_flags & STATION_FLAG_CHANGED) {
581 sta->flags &= ~WLAN_STA_AUTHORIZED;
582 if (params->station_flags & STATION_FLAG_AUTHORIZED)
583 sta->flags |= WLAN_STA_AUTHORIZED;
585 sta->flags &= ~WLAN_STA_SHORT_PREAMBLE;
586 if (params->station_flags & STATION_FLAG_SHORT_PREAMBLE)
587 sta->flags |= WLAN_STA_SHORT_PREAMBLE;
589 sta->flags &= ~WLAN_STA_WME;
590 if (params->station_flags & STATION_FLAG_WME)
591 sta->flags |= WLAN_STA_WME;
595 * FIXME: updating the following information is racy when this
596 * function is called from ieee80211_change_station().
597 * However, all this information should be static so
598 * maybe we should just reject attemps to change it.
602 sta->aid = params->aid;
603 if (sta->aid > IEEE80211_MAX_AID)
604 sta->aid = 0; /* XXX: should this be an error? */
607 if (params->listen_interval >= 0)
608 sta->listen_interval = params->listen_interval;
610 if (params->supported_rates) {
612 sband = local->hw.wiphy->bands[local->oper_channel->band];
614 for (i = 0; i < params->supported_rates_len; i++) {
615 int rate = (params->supported_rates[i] & 0x7f) * 5;
616 for (j = 0; j < sband->n_bitrates; j++) {
617 if (sband->bitrates[j].bitrate == rate)
621 sta->supp_rates[local->oper_channel->band] = rates;
624 if (ieee80211_vif_is_mesh(&sdata->vif) && params->plink_action) {
625 switch (params->plink_action) {
626 case PLINK_ACTION_OPEN:
627 mesh_plink_open(sta);
629 case PLINK_ACTION_BLOCK:
630 mesh_plink_block(sta);
636 static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,
637 u8 *mac, struct station_parameters *params)
639 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
640 struct sta_info *sta;
641 struct ieee80211_sub_if_data *sdata;
644 /* Prevent a race with changing the rate control algorithm */
645 if (!netif_running(dev))
649 sdata = IEEE80211_DEV_TO_SUB_IF(params->vlan);
651 if (sdata->vif.type != IEEE80211_IF_TYPE_VLAN ||
652 sdata->vif.type != IEEE80211_IF_TYPE_AP)
655 sdata = IEEE80211_DEV_TO_SUB_IF(dev);
657 if (ieee80211_vif_is_mesh(&sdata->vif))
658 sta = mesh_plink_alloc(sdata, mac, DEFAULT_RATES, GFP_KERNEL);
660 sta = sta_info_alloc(sdata, mac, GFP_KERNEL);
664 sta->flags = WLAN_STA_AUTH | WLAN_STA_ASSOC;
666 sta_apply_parameters(local, sta, params);
668 rate_control_rate_init(sta, local);
672 err = sta_info_insert(sta);
674 sta_info_destroy(sta);
679 if (sdata->vif.type == IEEE80211_IF_TYPE_VLAN ||
680 sdata->vif.type == IEEE80211_IF_TYPE_AP)
681 ieee80211_send_layer2_update(sta);
688 static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev,
691 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
692 struct ieee80211_local *local = sdata->local;
693 struct sta_info *sta;
696 /* XXX: get sta belonging to dev */
697 sta = sta_info_get(local, mac);
701 sta_info_unlink(&sta);
705 sta_info_destroy(sta);
708 sta_info_flush(local, sdata);
713 static int ieee80211_change_station(struct wiphy *wiphy,
714 struct net_device *dev,
716 struct station_parameters *params)
718 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
719 struct sta_info *sta;
720 struct ieee80211_sub_if_data *vlansdata;
722 /* XXX: get sta belonging to dev */
723 sta = sta_info_get(local, mac);
727 if (params->vlan && params->vlan != sta->sdata->dev) {
728 vlansdata = IEEE80211_DEV_TO_SUB_IF(params->vlan);
730 if (vlansdata->vif.type != IEEE80211_IF_TYPE_VLAN ||
731 vlansdata->vif.type != IEEE80211_IF_TYPE_AP)
734 sta->sdata = IEEE80211_DEV_TO_SUB_IF(params->vlan);
735 ieee80211_send_layer2_update(sta);
738 sta_apply_parameters(local, sta, params);
743 #ifdef CONFIG_MAC80211_MESH
744 static int ieee80211_add_mpath(struct wiphy *wiphy, struct net_device *dev,
745 u8 *dst, u8 *next_hop)
747 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
748 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
749 struct mesh_path *mpath;
750 struct sta_info *sta;
753 if (!netif_running(dev))
756 if (sdata->vif.type != IEEE80211_IF_TYPE_MESH_POINT)
760 sta = sta_info_get(local, next_hop);
766 err = mesh_path_add(dst, dev);
772 mpath = mesh_path_lookup(dst, dev);
777 mesh_path_fix_nexthop(mpath, sta);
783 static int ieee80211_del_mpath(struct wiphy *wiphy, struct net_device *dev,
787 return mesh_path_del(dst, dev, false);
789 mesh_path_flush(dev);
793 static int ieee80211_change_mpath(struct wiphy *wiphy,
794 struct net_device *dev,
795 u8 *dst, u8 *next_hop)
797 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
798 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
799 struct mesh_path *mpath;
800 struct sta_info *sta;
802 if (!netif_running(dev))
805 if (sdata->vif.type != IEEE80211_IF_TYPE_MESH_POINT)
810 sta = sta_info_get(local, next_hop);
816 mpath = mesh_path_lookup(dst, dev);
822 mesh_path_fix_nexthop(mpath, sta);
828 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop,
829 struct mpath_info *pinfo)
832 memcpy(next_hop, mpath->next_hop->addr, ETH_ALEN);
834 memset(next_hop, 0, ETH_ALEN);
836 pinfo->filled = MPATH_INFO_FRAME_QLEN |
840 MPATH_INFO_DISCOVERY_TIMEOUT |
841 MPATH_INFO_DISCOVERY_RETRIES |
844 pinfo->frame_qlen = mpath->frame_queue.qlen;
845 pinfo->dsn = mpath->dsn;
846 pinfo->metric = mpath->metric;
847 if (time_before(jiffies, mpath->exp_time))
848 pinfo->exptime = jiffies_to_msecs(mpath->exp_time - jiffies);
849 pinfo->discovery_timeout =
850 jiffies_to_msecs(mpath->discovery_timeout);
851 pinfo->discovery_retries = mpath->discovery_retries;
853 if (mpath->flags & MESH_PATH_ACTIVE)
854 pinfo->flags |= NL80211_MPATH_FLAG_ACTIVE;
855 if (mpath->flags & MESH_PATH_RESOLVING)
856 pinfo->flags |= NL80211_MPATH_FLAG_RESOLVING;
857 if (mpath->flags & MESH_PATH_DSN_VALID)
858 pinfo->flags |= NL80211_MPATH_FLAG_DSN_VALID;
859 if (mpath->flags & MESH_PATH_FIXED)
860 pinfo->flags |= NL80211_MPATH_FLAG_FIXED;
861 if (mpath->flags & MESH_PATH_RESOLVING)
862 pinfo->flags |= NL80211_MPATH_FLAG_RESOLVING;
864 pinfo->flags = mpath->flags;
867 static int ieee80211_get_mpath(struct wiphy *wiphy, struct net_device *dev,
868 u8 *dst, u8 *next_hop, struct mpath_info *pinfo)
871 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
872 struct mesh_path *mpath;
874 if (sdata->vif.type != IEEE80211_IF_TYPE_MESH_POINT)
878 mpath = mesh_path_lookup(dst, dev);
883 memcpy(dst, mpath->dst, ETH_ALEN);
884 mpath_set_pinfo(mpath, next_hop, pinfo);
889 static int ieee80211_dump_mpath(struct wiphy *wiphy, struct net_device *dev,
890 int idx, u8 *dst, u8 *next_hop,
891 struct mpath_info *pinfo)
893 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
894 struct mesh_path *mpath;
896 if (sdata->vif.type != IEEE80211_IF_TYPE_MESH_POINT)
900 mpath = mesh_path_lookup_by_idx(idx, dev);
905 memcpy(dst, mpath->dst, ETH_ALEN);
906 mpath_set_pinfo(mpath, next_hop, pinfo);
912 struct cfg80211_ops mac80211_config_ops = {
913 .add_virtual_intf = ieee80211_add_iface,
914 .del_virtual_intf = ieee80211_del_iface,
915 .change_virtual_intf = ieee80211_change_iface,
916 .add_key = ieee80211_add_key,
917 .del_key = ieee80211_del_key,
918 .get_key = ieee80211_get_key,
919 .set_default_key = ieee80211_config_default_key,
920 .add_beacon = ieee80211_add_beacon,
921 .set_beacon = ieee80211_set_beacon,
922 .del_beacon = ieee80211_del_beacon,
923 .add_station = ieee80211_add_station,
924 .del_station = ieee80211_del_station,
925 .change_station = ieee80211_change_station,
926 .get_station = ieee80211_get_station,
927 .dump_station = ieee80211_dump_station,
928 #ifdef CONFIG_MAC80211_MESH
929 .add_mpath = ieee80211_add_mpath,
930 .del_mpath = ieee80211_del_mpath,
931 .change_mpath = ieee80211_change_mpath,
932 .get_mpath = ieee80211_get_mpath,
933 .dump_mpath = ieee80211_dump_mpath,