Skip to contentSkip to conversation

rsi: Using band from rsi_common to fill in ieee80211_rx_status

PATCH New Jahnavi Meher 1 participant 1 message Jun 16, 2014 Redpine wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 3/16 rsi: Using band from rsi_common to fill in ieee80211_rx_status

Filling in band from common->band.

---
 drivers/net/wireless/rsi/rsi_91x_mac80211.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
drivers/net/wireless/rsi/rsi_91x_mac80211.c +1 -4
index a1bdea1..45bdb99 100644
@@ -770,10 +770,7 @@ static void rsi_fill_rx_status(struct ieee80211_hw *hw,
 
 	rxs->signal = -(rssi);
 
-	if (channel <= 14)
-		rxs->band = IEEE80211_BAND_2GHZ;
-	else
-		rxs->band = IEEE80211_BAND_5GHZ;
+	rxs->band = common->band;
 
 	freq = ieee80211_channel_to_frequency(channel, rxs->band);
 
Signature · 1 line
1.7.1