diff options
author | Andrea Merello <andrea.merello@gmail.com> | 2014-05-07 17:52:16 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-05-07 22:08:08 +0200 |
commit | e58342d9c8e2342688a804404c5636e32f1fa64e (patch) | |
tree | 1ad88d827e8b4a88b68ee6d20df35b0114bf529a /drivers/net/wireless/rtl818x | |
parent | rtl8187: report mac80211 short preamble RX flag (diff) | |
download | linux-e58342d9c8e2342688a804404c5636e32f1fa64e.tar.xz linux-e58342d9c8e2342688a804404c5636e32f1fa64e.zip |
rtl8180: report mac80211 short preamble RX flag
This patch make it possible to mac80211 to know whether a frame
has been received with short preamble.
It simply checks for the "splcp" flag in the RX status
descriptor, and eventually set RX_FLAG_SHORTPRE in mac80211
rx status structure.
Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtl818x')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8180/dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180/dev.c b/drivers/net/wireless/rtl818x/rtl8180/dev.c index 50d69b13f984..8d07df274262 100644 --- a/drivers/net/wireless/rtl818x/rtl8180/dev.c +++ b/drivers/net/wireless/rtl818x/rtl8180/dev.c @@ -284,6 +284,8 @@ static void rtl8180_handle_rx(struct ieee80211_hw *dev) rx_status.band = dev->conf.chandef.chan->band; rx_status.mactime = tsft; rx_status.flag |= RX_FLAG_MACTIME_START; + if (flags & RTL818X_RX_DESC_FLAG_SPLCP) + rx_status.flag |= RX_FLAG_SHORTPRE; if (flags & RTL818X_RX_DESC_FLAG_CRC32_ERR) rx_status.flag |= RX_FLAG_FAILED_FCS_CRC; |