aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index e00750836ba5..0a72d1e3d3ab 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -152,6 +152,7 @@ struct station_parameters {
152 u16 aid; 152 u16 aid;
153 u8 supported_rates_len; 153 u8 supported_rates_len;
154 u8 plink_action; 154 u8 plink_action;
155 struct ieee80211_ht_cap *ht_capa;
155}; 156};
156 157
157/** 158/**
@@ -268,6 +269,23 @@ struct mpath_info {
268 u8 flags; 269 u8 flags;
269}; 270};
270 271
272/**
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)
283 */
284struct bss_parameters {
285 int use_cts_prot;
286 int use_short_preamble;
287 int use_short_slot_time;
288};
271 289
272/* from net/wireless.h */ 290/* from net/wireless.h */
273struct wiphy; 291struct wiphy;
@@ -318,6 +336,8 @@ struct wiphy;
318 * @change_station: Modify a given station. 336 * @change_station: Modify a given station.
319 * 337 *
320 * @set_mesh_cfg: set mesh parameters (by now, just mesh id) 338 * @set_mesh_cfg: set mesh parameters (by now, just mesh id)
339 *
340 * @change_bss: Modify parameters for a given BSS.
321 */ 341 */
322struct cfg80211_ops { 342struct cfg80211_ops {
323 int (*add_virtual_intf)(struct wiphy *wiphy, char *name, 343 int (*add_virtual_intf)(struct wiphy *wiphy, char *name,
@@ -370,6 +390,9 @@ struct cfg80211_ops {
370 int (*dump_mpath)(struct wiphy *wiphy, struct net_device *dev, 390 int (*dump_mpath)(struct wiphy *wiphy, struct net_device *dev,
371 int idx, u8 *dst, u8 *next_hop, 391 int idx, u8 *dst, u8 *next_hop,
372 struct mpath_info *pinfo); 392 struct mpath_info *pinfo);
393
394 int (*change_bss)(struct wiphy *wiphy, struct net_device *dev,
395 struct bss_parameters *params);
373}; 396};
374 397
375#endif /* __NET_CFG80211_H */ 398#endif /* __NET_CFG80211_H */