mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
mac80211: fix short slot handling
This patch makes mac80211 handle short slot requests from the AP properly. Also warn about uses of IEEE80211_CONF_SHORT_SLOT_TIME and optimise out the code since it cannot ever be hit anyway. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
e87a2feea7
commit
7a5158ef8d
3 changed files with 62 additions and 49 deletions
|
@ -180,8 +180,12 @@ enum ieee80211_bss_change {
|
|||
* @assoc: association status
|
||||
* @aid: association ID number, valid only when @assoc is true
|
||||
* @use_cts_prot: use CTS protection
|
||||
* @use_short_preamble: use 802.11b short preamble
|
||||
* @use_short_slot: use short slot time (only relevant for ERP)
|
||||
* @use_short_preamble: use 802.11b short preamble;
|
||||
* if the hardware cannot handle this it must set the
|
||||
* IEEE80211_HW_2GHZ_SHORT_PREAMBLE_INCAPABLE hardware flag
|
||||
* @use_short_slot: use short slot time (only relevant for ERP);
|
||||
* if the hardware cannot handle this it must set the
|
||||
* IEEE80211_HW_2GHZ_SHORT_SLOT_INCAPABLE hardware flag
|
||||
* @dtim_period: num of beacons before the next DTIM, for PSM
|
||||
* @timestamp: beacon timestamp
|
||||
* @beacon_int: beacon interval
|
||||
|
@ -442,23 +446,23 @@ struct ieee80211_rx_status {
|
|||
*
|
||||
* Flags to define PHY configuration options
|
||||
*
|
||||
* @IEEE80211_CONF_SHORT_SLOT_TIME: use 802.11g short slot time
|
||||
* @IEEE80211_CONF_RADIOTAP: add radiotap header at receive time (if supported)
|
||||
* @IEEE80211_CONF_SUPPORT_HT_MODE: use 802.11n HT capabilities (if supported)
|
||||
* @IEEE80211_CONF_PS: Enable 802.11 power save mode
|
||||
*/
|
||||
enum ieee80211_conf_flags {
|
||||
/*
|
||||
* TODO: IEEE80211_CONF_SHORT_SLOT_TIME will be removed once drivers
|
||||
* have been converted to use bss_info_changed() for slot time
|
||||
* configuration
|
||||
*/
|
||||
IEEE80211_CONF_SHORT_SLOT_TIME = (1<<0),
|
||||
IEEE80211_CONF_RADIOTAP = (1<<1),
|
||||
IEEE80211_CONF_SUPPORT_HT_MODE = (1<<2),
|
||||
IEEE80211_CONF_PS = (1<<3),
|
||||
IEEE80211_CONF_RADIOTAP = (1<<0),
|
||||
IEEE80211_CONF_SUPPORT_HT_MODE = (1<<1),
|
||||
IEEE80211_CONF_PS = (1<<2),
|
||||
};
|
||||
|
||||
/* XXX: remove all this once drivers stop trying to use it */
|
||||
static inline int __deprecated __IEEE80211_CONF_SHORT_SLOT_TIME(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#define IEEE80211_CONF_SHORT_SLOT_TIME (__IEEE80211_CONF_SHORT_SLOT_TIME())
|
||||
|
||||
/**
|
||||
* struct ieee80211_conf - configuration of the device
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue