Skip to contentSkip to conversation

net/wireless: ipw2x00: fix a typo in wiphy struct initilization

PATCH In review Stanislav Yakovlev 2 participants 2 messages Mar 20, 2012 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/wireless: ipw2x00: fix a typo in wiphy struct initilization

Fix comment as well.

---
 drivers/net/wireless/ipw2x00/ipw2200.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/ipw2x00/ipw2200.c +2 -2
index 4fcdac6..2b02257 100644
@@ -11507,9 +11507,9 @@ static int ipw_wdev_init(struct net_device *dev)
 			rc = -ENOMEM;
 			goto out;
 		}
-		/* translate geo->bg to a_band.channels */
+		/* translate geo->a to a_band.channels */
 		for (i = 0; i < geo->a_channels; i++) {
-			a_band->channels[i].band = IEEE80211_BAND_2GHZ;
+			a_band->channels[i].band = IEEE80211_BAND_5GHZ;
 			a_band->channels[i].center_freq = geo->a[i].freq;
 			a_band->channels[i].hw_value = geo->a[i].channel;
 			a_band->channels[i].max_power = geo->a[i].max_power;
Signature · 1 line
1.7.2.5
#1 lore raw

Hi Stanislav,

Quoted 9 lines · Stanislav Yakovlev

Fix comment as well.

---

drivers/net/wireless/ipw2x00/ipw2200.c +0 -0
index 4fcdac6..2b02257 100644

drivers/net/wireless/ipw2x00/ipw2200.c static int ipw_wdev_init(struct net_device *dev) · line 11512

Quoted 8 lines
drivers/net/wireless/ipw2x00/ipw2200.c +2 -2
@@ -11507,9 +11507,9 @@ static int ipw_wdev_init(struct net_device *dev)
                        rc = -ENOMEM;
                        goto out;
                }
-               /* translate geo->bg to a_band.channels */
+               /* translate geo->a to a_band.channels */
                for (i = 0; i < geo->a_channels; i++) {
-                       a_band->channels[i].band = IEEE80211_BAND_2GHZ;
+                       a_band->channels[i].band = IEEE80211_BAND_5GHZ;

Looks good.

I'm surprised that nobody noticed this before, but someone did mention that the 2x00 802.11a parts were extremely rare.

Thanks,

Signature · 5 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/