Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247100
b: refs/heads/master
c: 0af0467
h: refs/heads/master
v: v3
  • Loading branch information
Juuso Oikarinen authored and Luciano Coelho committed Apr 19, 2011
1 parent 9a54510 commit 4f1a68e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7ddf549f3f2da156f5c12921e6699024e80a3f4
refs/heads/master: 0af0467f09207cbbeb387d2e09ea539534c6655c
13 changes: 5 additions & 8 deletions trunk/drivers/net/wireless/wl12xx/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,14 @@ static void wl1271_rx_status(struct wl1271 *wl,
struct ieee80211_rx_status *status,
u8 beacon)
{
enum ieee80211_band desc_band;

memset(status, 0, sizeof(struct ieee80211_rx_status));

status->band = wl->band;

if ((desc->flags & WL1271_RX_DESC_BAND_MASK) == WL1271_RX_DESC_BAND_BG)
desc_band = IEEE80211_BAND_2GHZ;
status->band = IEEE80211_BAND_2GHZ;
else
desc_band = IEEE80211_BAND_5GHZ;
status->band = IEEE80211_BAND_5GHZ;

status->rate_idx = wl1271_rate_to_idx(desc->rate, desc_band);
status->rate_idx = wl1271_rate_to_idx(desc->rate, status->band);

#ifdef CONFIG_WL12XX_HT
/* 11n support */
Expand All @@ -76,7 +72,8 @@ static void wl1271_rx_status(struct wl1271 *wl,
*/
wl->noise = desc->rssi - (desc->snr >> 1);

status->freq = ieee80211_channel_to_frequency(desc->channel, desc_band);
status->freq = ieee80211_channel_to_frequency(desc->channel,
status->band);

if (desc->flags & WL1271_RX_DESC_ENCRYPT_MASK) {
status->flag |= RX_FLAG_IV_STRIPPED | RX_FLAG_MMIC_STRIPPED;
Expand Down

0 comments on commit 4f1a68e

Please sign in to comment.