blob: 448023193e5598cb5c6006e43da9de42c627a171 [file] [log] [blame]
Johannes Berg704232c2007-04-23 12:20:05 -07001#ifndef __NET_CFG80211_H
2#define __NET_CFG80211_H
3
4#include <linux/netlink.h>
5#include <linux/skbuff.h>
Johannes Berg55682962007-09-20 13:09:35 -04006#include <linux/nl80211.h>
Johannes Berg704232c2007-04-23 12:20:05 -07007#include <net/genetlink.h>
8
9/*
10 * 802.11 configuration in-kernel interface
11 *
Johannes Berg55682962007-09-20 13:09:35 -040012 * Copyright 2006, 2007 Johannes Berg <johannes@sipsolutions.net>
Johannes Berg704232c2007-04-23 12:20:05 -070013 */
14
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +010015/**
16 * struct vif_params - describes virtual interface parameters
17 * @mesh_id: mesh ID to use
18 * @mesh_id_len: length of the mesh ID
19 */
20struct vif_params {
21 u8 *mesh_id;
22 int mesh_id_len;
23};
24
Andy Green179f8312007-07-10 19:29:38 +020025/* Radiotap header iteration
26 * implemented in net/wireless/radiotap.c
27 * docs in Documentation/networking/radiotap-headers.txt
28 */
29/**
30 * struct ieee80211_radiotap_iterator - tracks walk thru present radiotap args
31 * @rtheader: pointer to the radiotap header we are walking through
32 * @max_length: length of radiotap header in cpu byte ordering
33 * @this_arg_index: IEEE80211_RADIOTAP_... index of current arg
34 * @this_arg: pointer to current radiotap arg
35 * @arg_index: internal next argument index
36 * @arg: internal next argument pointer
37 * @next_bitmap: internal pointer to next present u32
38 * @bitmap_shifter: internal shifter for curr u32 bitmap, b0 set == arg present
39 */
40
41struct ieee80211_radiotap_iterator {
42 struct ieee80211_radiotap_header *rtheader;
43 int max_length;
44 int this_arg_index;
45 u8 *this_arg;
46
47 int arg_index;
48 u8 *arg;
49 __le32 *next_bitmap;
50 u32 bitmap_shifter;
51};
52
53extern int ieee80211_radiotap_iterator_init(
54 struct ieee80211_radiotap_iterator *iterator,
55 struct ieee80211_radiotap_header *radiotap_header,
56 int max_length);
57
58extern int ieee80211_radiotap_iterator_next(
59 struct ieee80211_radiotap_iterator *iterator);
60
61
Johannes Berg41ade002007-12-19 02:03:29 +010062 /**
63 * struct key_params - key information
64 *
65 * Information about a key
66 *
67 * @key: key material
68 * @key_len: length of key material
69 * @cipher: cipher suite selector
70 * @seq: sequence counter (IV/PN) for TKIP and CCMP keys, only used
71 * with the get_key() callback, must be in little endian,
72 * length given by @seq_len.
73 */
74struct key_params {
75 u8 *key;
76 u8 *seq;
77 int key_len;
78 int seq_len;
79 u32 cipher;
80};
81
Johannes Berged1b6cc2007-12-19 02:03:32 +010082/**
83 * struct beacon_parameters - beacon parameters
84 *
85 * Used to configure the beacon for an interface.
86 *
87 * @head: head portion of beacon (before TIM IE)
88 * or %NULL if not changed
89 * @tail: tail portion of beacon (after TIM IE)
90 * or %NULL if not changed
91 * @interval: beacon interval or zero if not changed
92 * @dtim_period: DTIM period or zero if not changed
93 * @head_len: length of @head
94 * @tail_len: length of @tail
95 */
96struct beacon_parameters {
97 u8 *head, *tail;
98 int interval, dtim_period;
99 int head_len, tail_len;
100};
101
Johannes Berg5727ef12007-12-19 02:03:34 +0100102/**
103 * enum station_flags - station flags
104 *
105 * Station capability flags. Note that these must be the bits
106 * according to the nl80211 flags.
107 *
108 * @STATION_FLAG_CHANGED: station flags were changed
109 * @STATION_FLAG_AUTHORIZED: station is authorized to send frames (802.1X)
110 * @STATION_FLAG_SHORT_PREAMBLE: station is capable of receiving frames
111 * with short preambles
112 * @STATION_FLAG_WME: station is WME/QoS capable
113 */
114enum station_flags {
115 STATION_FLAG_CHANGED = 1<<0,
116 STATION_FLAG_AUTHORIZED = 1<<NL80211_STA_FLAG_AUTHORIZED,
117 STATION_FLAG_SHORT_PREAMBLE = 1<<NL80211_STA_FLAG_SHORT_PREAMBLE,
118 STATION_FLAG_WME = 1<<NL80211_STA_FLAG_WME,
119};
120
121/**
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100122 * enum plink_action - actions to perform in mesh peers
123 *
124 * @PLINK_ACTION_INVALID: action 0 is reserved
125 * @PLINK_ACTION_OPEN: start mesh peer link establishment
126 * @PLINK_ACTION_BLOCL: block traffic from this mesh peer
127 */
128enum plink_actions {
129 PLINK_ACTION_INVALID,
130 PLINK_ACTION_OPEN,
131 PLINK_ACTION_BLOCK,
132};
133
134/**
Johannes Berg5727ef12007-12-19 02:03:34 +0100135 * struct station_parameters - station parameters
136 *
137 * Used to change and create a new station.
138 *
139 * @vlan: vlan interface station should belong to
140 * @supported_rates: supported rates in IEEE 802.11 format
141 * (or NULL for no change)
142 * @supported_rates_len: number of supported rates
143 * @station_flags: station flags (see &enum station_flags)
144 * @listen_interval: listen interval or -1 for no change
145 * @aid: AID or zero for no change
146 */
147struct station_parameters {
148 u8 *supported_rates;
149 struct net_device *vlan;
150 u32 station_flags;
151 int listen_interval;
152 u16 aid;
153 u8 supported_rates_len;
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100154 u8 plink_action;
Jouni Malinen36aedc92008-08-25 11:58:58 +0300155 struct ieee80211_ht_cap *ht_capa;
Johannes Berg5727ef12007-12-19 02:03:34 +0100156};
157
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100158/**
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100159 * enum station_info_flags - station information flags
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100160 *
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100161 * Used by the driver to indicate which info in &struct station_info
162 * it has filled in during get_station() or dump_station().
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100163 *
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100164 * @STATION_INFO_INACTIVE_TIME: @inactive_time filled
165 * @STATION_INFO_RX_BYTES: @rx_bytes filled
166 * @STATION_INFO_TX_BYTES: @tx_bytes filled
167 * @STATION_INFO_LLID: @llid filled
168 * @STATION_INFO_PLID: @plid filled
169 * @STATION_INFO_PLINK_STATE: @plink_state filled
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100170 */
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100171enum station_info_flags {
172 STATION_INFO_INACTIVE_TIME = 1<<0,
173 STATION_INFO_RX_BYTES = 1<<1,
174 STATION_INFO_TX_BYTES = 1<<2,
175 STATION_INFO_LLID = 1<<3,
176 STATION_INFO_PLID = 1<<4,
177 STATION_INFO_PLINK_STATE = 1<<5,
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100178};
179
180/**
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100181 * struct station_info - station information
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100182 *
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100183 * Station information filled by driver for get_station() and dump_station.
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100184 *
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100185 * @filled: bitflag of flags from &enum station_info_flags
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100186 * @inactive_time: time since last station activity (tx/rx) in milliseconds
187 * @rx_bytes: bytes received from this station
188 * @tx_bytes: bytes transmitted to this station
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100189 * @llid: mesh local link id
190 * @plid: mesh peer link id
191 * @plink_state: mesh peer link state
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100192 */
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100193struct station_info {
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100194 u32 filled;
195 u32 inactive_time;
196 u32 rx_bytes;
197 u32 tx_bytes;
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100198 u16 llid;
199 u16 plid;
200 u8 plink_state;
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100201};
202
Michael Wu66f7ac52008-01-31 19:48:22 +0100203/**
204 * enum monitor_flags - monitor flags
205 *
206 * Monitor interface configuration flags. Note that these must be the bits
207 * according to the nl80211 flags.
208 *
209 * @MONITOR_FLAG_FCSFAIL: pass frames with bad FCS
210 * @MONITOR_FLAG_PLCPFAIL: pass frames with bad PLCP
211 * @MONITOR_FLAG_CONTROL: pass control frames
212 * @MONITOR_FLAG_OTHER_BSS: disable BSSID filtering
213 * @MONITOR_FLAG_COOK_FRAMES: report frames after processing
214 */
215enum monitor_flags {
216 MONITOR_FLAG_FCSFAIL = 1<<NL80211_MNTR_FLAG_FCSFAIL,
217 MONITOR_FLAG_PLCPFAIL = 1<<NL80211_MNTR_FLAG_PLCPFAIL,
218 MONITOR_FLAG_CONTROL = 1<<NL80211_MNTR_FLAG_CONTROL,
219 MONITOR_FLAG_OTHER_BSS = 1<<NL80211_MNTR_FLAG_OTHER_BSS,
220 MONITOR_FLAG_COOK_FRAMES = 1<<NL80211_MNTR_FLAG_COOK_FRAMES,
221};
222
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100223/**
224 * enum mpath_info_flags - mesh path information flags
225 *
226 * Used by the driver to indicate which info in &struct mpath_info it has filled
227 * in during get_station() or dump_station().
228 *
229 * MPATH_INFO_FRAME_QLEN: @frame_qlen filled
230 * MPATH_INFO_DSN: @dsn filled
231 * MPATH_INFO_METRIC: @metric filled
232 * MPATH_INFO_EXPTIME: @exptime filled
233 * MPATH_INFO_DISCOVERY_TIMEOUT: @discovery_timeout filled
234 * MPATH_INFO_DISCOVERY_RETRIES: @discovery_retries filled
235 * MPATH_INFO_FLAGS: @flags filled
236 */
237enum mpath_info_flags {
238 MPATH_INFO_FRAME_QLEN = BIT(0),
239 MPATH_INFO_DSN = BIT(1),
240 MPATH_INFO_METRIC = BIT(2),
241 MPATH_INFO_EXPTIME = BIT(3),
242 MPATH_INFO_DISCOVERY_TIMEOUT = BIT(4),
243 MPATH_INFO_DISCOVERY_RETRIES = BIT(5),
244 MPATH_INFO_FLAGS = BIT(6),
245};
246
247/**
248 * struct mpath_info - mesh path information
249 *
250 * Mesh path information filled by driver for get_mpath() and dump_mpath().
251 *
252 * @filled: bitfield of flags from &enum mpath_info_flags
253 * @frame_qlen: number of queued frames for this destination
254 * @dsn: destination sequence number
255 * @metric: metric (cost) of this mesh path
256 * @exptime: expiration time for the mesh path from now, in msecs
257 * @flags: mesh path flags
258 * @discovery_timeout: total mesh path discovery timeout, in msecs
259 * @discovery_retries: mesh path discovery retries
260 */
261struct mpath_info {
262 u32 filled;
263 u32 frame_qlen;
264 u32 dsn;
265 u32 metric;
266 u32 exptime;
267 u32 discovery_timeout;
268 u8 discovery_retries;
269 u8 flags;
270};
271
Jouni Malinen9f1ba902008-08-07 20:07:01 +0300272/**
273 * struct bss_parameters - BSS parameters
274 *
275 * Used to change BSS parameters (mainly for AP mode).
276 *
277 * @use_cts_prot: Whether to use CTS protection
278 * (0 = no, 1 = yes, -1 = do not change)
279 * @use_short_preamble: Whether the use of short preambles is allowed
280 * (0 = no, 1 = yes, -1 = do not change)
281 * @use_short_slot_time: Whether the use of short slot time is allowed
282 * (0 = no, 1 = yes, -1 = do not change)
Jouni Malinen90c97a02008-10-30 16:59:22 +0200283 * @basic_rates: basic rates in IEEE 802.11 format
284 * (or NULL for no change)
285 * @basic_rates_len: number of basic rates
Jouni Malinen9f1ba902008-08-07 20:07:01 +0300286 */
287struct bss_parameters {
288 int use_cts_prot;
289 int use_short_preamble;
290 int use_short_slot_time;
Jouni Malinen90c97a02008-10-30 16:59:22 +0200291 u8 *basic_rates;
292 u8 basic_rates_len;
Jouni Malinen9f1ba902008-08-07 20:07:01 +0300293};
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100294
Luis R. Rodriguezb2e1b302008-09-09 23:19:48 -0700295/**
296 * enum reg_set_by - Indicates who is trying to set the regulatory domain
297 * @REGDOM_SET_BY_INIT: regulatory domain was set by initialization. We will be
298 * using a static world regulatory domain by default.
299 * @REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world regulatory domain.
300 * @REGDOM_SET_BY_USER: User asked the wireless core to set the
301 * regulatory domain.
302 * @REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the wireless core
303 * it thinks its knows the regulatory domain we should be in.
304 * @REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an 802.11 country
305 * information element with regulatory information it thinks we
306 * should consider.
307 */
308enum reg_set_by {
309 REGDOM_SET_BY_INIT,
310 REGDOM_SET_BY_CORE,
311 REGDOM_SET_BY_USER,
312 REGDOM_SET_BY_DRIVER,
313 REGDOM_SET_BY_COUNTRY_IE,
314};
315
316struct ieee80211_freq_range {
317 u32 start_freq_khz;
318 u32 end_freq_khz;
319 u32 max_bandwidth_khz;
320};
321
322struct ieee80211_power_rule {
323 u32 max_antenna_gain;
324 u32 max_eirp;
325};
326
327struct ieee80211_reg_rule {
328 struct ieee80211_freq_range freq_range;
329 struct ieee80211_power_rule power_rule;
330 u32 flags;
331};
332
333struct ieee80211_regdomain {
334 u32 n_reg_rules;
335 char alpha2[2];
336 struct ieee80211_reg_rule reg_rules[];
337};
338
339#define MHZ_TO_KHZ(freq) (freq * 1000)
340#define KHZ_TO_MHZ(freq) (freq / 1000)
341#define DBI_TO_MBI(gain) (gain * 100)
342#define MBI_TO_DBI(gain) (gain / 100)
343#define DBM_TO_MBM(gain) (gain * 100)
344#define MBM_TO_DBM(gain) (gain / 100)
345
346#define REG_RULE(start, end, bw, gain, eirp, reg_flags) { \
347 .freq_range.start_freq_khz = (start) * 1000, \
348 .freq_range.end_freq_khz = (end) * 1000, \
349 .freq_range.max_bandwidth_khz = (bw) * 1000, \
350 .power_rule.max_antenna_gain = (gain) * 100, \
351 .power_rule.max_eirp = (eirp) * 100, \
352 .flags = reg_flags, \
353 }
354
colin@cozybit.com93da9cc2008-10-21 12:03:48 -0700355struct mesh_config {
356 /* Timeouts in ms */
357 /* Mesh plink management parameters */
358 u16 dot11MeshRetryTimeout;
359 u16 dot11MeshConfirmTimeout;
360 u16 dot11MeshHoldingTimeout;
361 u16 dot11MeshMaxPeerLinks;
362 u8 dot11MeshMaxRetries;
363 u8 dot11MeshTTL;
364 bool auto_open_plinks;
365 /* HWMP parameters */
366 u8 dot11MeshHWMPmaxPREQretries;
367 u32 path_refresh_time;
368 u16 min_discovery_timeout;
369 u32 dot11MeshHWMPactivePathTimeout;
370 u16 dot11MeshHWMPpreqMinInterval;
371 u16 dot11MeshHWMPnetDiameterTraversalTime;
372};
373
Jouni Malinen31888482008-10-30 16:59:24 +0200374/**
375 * struct ieee80211_txq_params - TX queue parameters
376 * @queue: TX queue identifier (NL80211_TXQ_Q_*)
377 * @txop: Maximum burst time in units of 32 usecs, 0 meaning disabled
378 * @cwmin: Minimum contention window [a value of the form 2^n-1 in the range
379 * 1..32767]
380 * @cwmax: Maximum contention window [a value of the form 2^n-1 in the range
381 * 1..32767]
382 * @aifs: Arbitration interframe space [0..255]
383 */
384struct ieee80211_txq_params {
385 enum nl80211_txq_q queue;
386 u16 txop;
387 u16 cwmin;
388 u16 cwmax;
389 u8 aifs;
390};
391
Johannes Berg704232c2007-04-23 12:20:05 -0700392/* from net/wireless.h */
393struct wiphy;
394
395/**
396 * struct cfg80211_ops - backend description for wireless configuration
397 *
398 * This struct is registered by fullmac card drivers and/or wireless stacks
399 * in order to handle configuration requests on their interfaces.
400 *
401 * All callbacks except where otherwise noted should return 0
402 * on success or a negative error code.
403 *
Johannes Berg43fb45cb2007-04-24 14:07:27 -0700404 * All operations are currently invoked under rtnl for consistency with the
405 * wireless extensions but this is subject to reevaluation as soon as this
406 * code is used more widely and we have a first user without wext.
407 *
Johannes Berg60719ff2008-09-16 14:55:09 +0200408 * @add_virtual_intf: create a new virtual interface with the given name,
409 * must set the struct wireless_dev's iftype.
Johannes Berg704232c2007-04-23 12:20:05 -0700410 *
411 * @del_virtual_intf: remove the virtual interface determined by ifindex.
Johannes Berg55682962007-09-20 13:09:35 -0400412 *
Johannes Berg60719ff2008-09-16 14:55:09 +0200413 * @change_virtual_intf: change type/configuration of virtual interface,
414 * keep the struct wireless_dev's iftype updated.
Johannes Berg55682962007-09-20 13:09:35 -0400415 *
Johannes Berg41ade002007-12-19 02:03:29 +0100416 * @add_key: add a key with the given parameters. @mac_addr will be %NULL
417 * when adding a group key.
418 *
419 * @get_key: get information about the key with the given parameters.
420 * @mac_addr will be %NULL when requesting information for a group
421 * key. All pointers given to the @callback function need not be valid
422 * after it returns.
423 *
424 * @del_key: remove a key given the @mac_addr (%NULL for a group key)
425 * and @key_index
426 *
427 * @set_default_key: set the default key on an interface
Johannes Berged1b6cc2007-12-19 02:03:32 +0100428 *
429 * @add_beacon: Add a beacon with given parameters, @head, @interval
430 * and @dtim_period will be valid, @tail is optional.
431 * @set_beacon: Change the beacon parameters for an access point mode
432 * interface. This should reject the call when no beacon has been
433 * configured.
434 * @del_beacon: Remove beacon configuration and stop sending the beacon.
Johannes Berg5727ef12007-12-19 02:03:34 +0100435 *
436 * @add_station: Add a new station.
437 *
438 * @del_station: Remove a station; @mac may be NULL to remove all stations.
439 *
440 * @change_station: Modify a given station.
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100441 *
colin@cozybit.com93da9cc2008-10-21 12:03:48 -0700442 * @get_mesh_params: Put the current mesh parameters into *params
443 *
444 * @set_mesh_params: Set mesh parameters.
445 * The mask is a bitfield which tells us which parameters to
446 * set, and which to leave alone.
447 *
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100448 * @set_mesh_cfg: set mesh parameters (by now, just mesh id)
Jouni Malinen9f1ba902008-08-07 20:07:01 +0300449 *
450 * @change_bss: Modify parameters for a given BSS.
Jouni Malinen31888482008-10-30 16:59:24 +0200451 *
452 * @set_txq_params: Set TX queue parameters
Johannes Berg704232c2007-04-23 12:20:05 -0700453 */
454struct cfg80211_ops {
455 int (*add_virtual_intf)(struct wiphy *wiphy, char *name,
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100456 enum nl80211_iftype type, u32 *flags,
457 struct vif_params *params);
Johannes Berg704232c2007-04-23 12:20:05 -0700458 int (*del_virtual_intf)(struct wiphy *wiphy, int ifindex);
Johannes Berg55682962007-09-20 13:09:35 -0400459 int (*change_virtual_intf)(struct wiphy *wiphy, int ifindex,
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100460 enum nl80211_iftype type, u32 *flags,
461 struct vif_params *params);
Johannes Berg41ade002007-12-19 02:03:29 +0100462
463 int (*add_key)(struct wiphy *wiphy, struct net_device *netdev,
464 u8 key_index, u8 *mac_addr,
465 struct key_params *params);
466 int (*get_key)(struct wiphy *wiphy, struct net_device *netdev,
467 u8 key_index, u8 *mac_addr, void *cookie,
468 void (*callback)(void *cookie, struct key_params*));
469 int (*del_key)(struct wiphy *wiphy, struct net_device *netdev,
470 u8 key_index, u8 *mac_addr);
471 int (*set_default_key)(struct wiphy *wiphy,
472 struct net_device *netdev,
473 u8 key_index);
Johannes Berged1b6cc2007-12-19 02:03:32 +0100474
475 int (*add_beacon)(struct wiphy *wiphy, struct net_device *dev,
476 struct beacon_parameters *info);
477 int (*set_beacon)(struct wiphy *wiphy, struct net_device *dev,
478 struct beacon_parameters *info);
479 int (*del_beacon)(struct wiphy *wiphy, struct net_device *dev);
Johannes Berg5727ef12007-12-19 02:03:34 +0100480
481
482 int (*add_station)(struct wiphy *wiphy, struct net_device *dev,
483 u8 *mac, struct station_parameters *params);
484 int (*del_station)(struct wiphy *wiphy, struct net_device *dev,
485 u8 *mac);
486 int (*change_station)(struct wiphy *wiphy, struct net_device *dev,
487 u8 *mac, struct station_parameters *params);
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100488 int (*get_station)(struct wiphy *wiphy, struct net_device *dev,
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100489 u8 *mac, struct station_info *sinfo);
490 int (*dump_station)(struct wiphy *wiphy, struct net_device *dev,
491 int idx, u8 *mac, struct station_info *sinfo);
492
493 int (*add_mpath)(struct wiphy *wiphy, struct net_device *dev,
494 u8 *dst, u8 *next_hop);
495 int (*del_mpath)(struct wiphy *wiphy, struct net_device *dev,
496 u8 *dst);
497 int (*change_mpath)(struct wiphy *wiphy, struct net_device *dev,
498 u8 *dst, u8 *next_hop);
499 int (*get_mpath)(struct wiphy *wiphy, struct net_device *dev,
500 u8 *dst, u8 *next_hop,
501 struct mpath_info *pinfo);
502 int (*dump_mpath)(struct wiphy *wiphy, struct net_device *dev,
503 int idx, u8 *dst, u8 *next_hop,
504 struct mpath_info *pinfo);
colin@cozybit.com93da9cc2008-10-21 12:03:48 -0700505 int (*get_mesh_params)(struct wiphy *wiphy,
506 struct net_device *dev,
507 struct mesh_config *conf);
508 int (*set_mesh_params)(struct wiphy *wiphy,
509 struct net_device *dev,
510 const struct mesh_config *nconf, u32 mask);
Jouni Malinen9f1ba902008-08-07 20:07:01 +0300511 int (*change_bss)(struct wiphy *wiphy, struct net_device *dev,
512 struct bss_parameters *params);
Jouni Malinen31888482008-10-30 16:59:24 +0200513
514 int (*set_txq_params)(struct wiphy *wiphy,
515 struct ieee80211_txq_params *params);
Johannes Berg704232c2007-04-23 12:20:05 -0700516};
517
518#endif /* __NET_CFG80211_H */