diff options
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 204bfedba306..8c804550465b 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -68,6 +68,8 @@ struct ieee80211_local; | |||
68 | #define IEEE80211_DEFAULT_MAX_SP_LEN \ | 68 | #define IEEE80211_DEFAULT_MAX_SP_LEN \ |
69 | IEEE80211_WMM_IE_STA_QOSINFO_SP_ALL | 69 | IEEE80211_WMM_IE_STA_QOSINFO_SP_ALL |
70 | 70 | ||
71 | #define IEEE80211_DEAUTH_FRAME_LEN (24 /* hdr */ + 2 /* reason */) | ||
72 | |||
71 | struct ieee80211_fragment_entry { | 73 | struct ieee80211_fragment_entry { |
72 | unsigned long first_frag_time; | 74 | unsigned long first_frag_time; |
73 | unsigned int seq; | 75 | unsigned int seq; |
@@ -411,6 +413,7 @@ struct ieee80211_if_managed { | |||
411 | struct work_struct monitor_work; | 413 | struct work_struct monitor_work; |
412 | struct work_struct chswitch_work; | 414 | struct work_struct chswitch_work; |
413 | struct work_struct beacon_connection_loss_work; | 415 | struct work_struct beacon_connection_loss_work; |
416 | struct work_struct csa_connection_drop_work; | ||
414 | 417 | ||
415 | unsigned long beacon_timeout; | 418 | unsigned long beacon_timeout; |
416 | unsigned long probe_timeout; | 419 | unsigned long probe_timeout; |
@@ -970,7 +973,6 @@ struct ieee80211_local { | |||
970 | int scan_channel_idx; | 973 | int scan_channel_idx; |
971 | int scan_ies_len; | 974 | int scan_ies_len; |
972 | 975 | ||
973 | struct ieee80211_sched_scan_ies sched_scan_ies; | ||
974 | struct work_struct sched_scan_stopped_work; | 976 | struct work_struct sched_scan_stopped_work; |
975 | struct ieee80211_sub_if_data __rcu *sched_scan_sdata; | 977 | struct ieee80211_sub_if_data __rcu *sched_scan_sdata; |
976 | 978 | ||
@@ -1057,7 +1059,7 @@ struct ieee80211_local { | |||
1057 | bool disable_dynamic_ps; | 1059 | bool disable_dynamic_ps; |
1058 | 1060 | ||
1059 | int user_power_level; /* in dBm */ | 1061 | int user_power_level; /* in dBm */ |
1060 | int power_constr_level; /* in dBm */ | 1062 | int ap_power_level; /* in dBm */ |
1061 | 1063 | ||
1062 | enum ieee80211_smps_mode smps_mode; | 1064 | enum ieee80211_smps_mode smps_mode; |
1063 | 1065 | ||
@@ -1165,7 +1167,6 @@ struct ieee802_11_elems { | |||
1165 | u8 prep_len; | 1167 | u8 prep_len; |
1166 | u8 perr_len; | 1168 | u8 perr_len; |
1167 | u8 country_elem_len; | 1169 | u8 country_elem_len; |
1168 | u8 pwr_constr_elem_len; | ||
1169 | u8 quiet_elem_len; | 1170 | u8 quiet_elem_len; |
1170 | u8 num_of_quiet_elem; /* can be more the one */ | 1171 | u8 num_of_quiet_elem; /* can be more the one */ |
1171 | u8 timeout_int_len; | 1172 | u8 timeout_int_len; |
@@ -1367,7 +1368,6 @@ void ieee80211_process_measurement_req(struct ieee80211_sub_if_data *sdata, | |||
1367 | int ieee80211_reconfig(struct ieee80211_local *local); | 1368 | int ieee80211_reconfig(struct ieee80211_local *local); |
1368 | void ieee80211_stop_device(struct ieee80211_local *local); | 1369 | void ieee80211_stop_device(struct ieee80211_local *local); |
1369 | 1370 | ||
1370 | #ifdef CONFIG_PM | ||
1371 | int __ieee80211_suspend(struct ieee80211_hw *hw, | 1371 | int __ieee80211_suspend(struct ieee80211_hw *hw, |
1372 | struct cfg80211_wowlan *wowlan); | 1372 | struct cfg80211_wowlan *wowlan); |
1373 | 1373 | ||
@@ -1381,18 +1381,6 @@ static inline int __ieee80211_resume(struct ieee80211_hw *hw) | |||
1381 | 1381 | ||
1382 | return ieee80211_reconfig(hw_to_local(hw)); | 1382 | return ieee80211_reconfig(hw_to_local(hw)); |
1383 | } | 1383 | } |
1384 | #else | ||
1385 | static inline int __ieee80211_suspend(struct ieee80211_hw *hw, | ||
1386 | struct cfg80211_wowlan *wowlan) | ||
1387 | { | ||
1388 | return 0; | ||
1389 | } | ||
1390 | |||
1391 | static inline int __ieee80211_resume(struct ieee80211_hw *hw) | ||
1392 | { | ||
1393 | return 0; | ||
1394 | } | ||
1395 | #endif | ||
1396 | 1384 | ||
1397 | /* utility functions/constants */ | 1385 | /* utility functions/constants */ |
1398 | extern void *mac80211_wiphy_privid; /* for wiphy privid */ | 1386 | extern void *mac80211_wiphy_privid; /* for wiphy privid */ |
@@ -1459,6 +1447,9 @@ void ieee80211_send_auth(struct ieee80211_sub_if_data *sdata, | |||
1459 | u16 transaction, u16 auth_alg, | 1447 | u16 transaction, u16 auth_alg, |
1460 | u8 *extra, size_t extra_len, const u8 *bssid, | 1448 | u8 *extra, size_t extra_len, const u8 *bssid, |
1461 | const u8 *da, const u8 *key, u8 key_len, u8 key_idx); | 1449 | const u8 *da, const u8 *key, u8 key_len, u8 key_idx); |
1450 | void ieee80211_send_deauth_disassoc(struct ieee80211_sub_if_data *sdata, | ||
1451 | const u8 *bssid, u16 stype, u16 reason, | ||
1452 | bool send_frame, u8 *frame_buf); | ||
1462 | int ieee80211_build_preq_ies(struct ieee80211_local *local, u8 *buffer, | 1453 | int ieee80211_build_preq_ies(struct ieee80211_local *local, u8 *buffer, |
1463 | const u8 *ie, size_t ie_len, | 1454 | const u8 *ie, size_t ie_len, |
1464 | enum ieee80211_band band, u32 rate_mask, | 1455 | enum ieee80211_band band, u32 rate_mask, |