[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1281546968.2010.5.camel@dellpc>
Date: Wed, 11 Aug 2010 18:16:08 +0100
From: Karl Relton <karllinuxtest.relton@...world.com>
To: Greg KH <greg@...ah.com>
Cc: linux-kernel@...r.kernel.org, linux-wireless@...r.kernel.org
Subject: [PATCH] staging/wlan-ng: Explicitly set some fields in cfg80211
interface
Greg
Now that the wlan-ng driver has been switched to cfg80211 in mainline,
can this small patch be forwarded also, to catch up with some new fields
that have gone into the cfg80211 api also in this cycle.
Thanks
Karl
Explicitly set some fields in cfg80211 interface
Signed-off-by: Karl Relton <karllinuxtest.relton@...world.com>
---
The cfg80211 api has introduced a few new fields. Rather than assume
what cfg80211 api does by default, set these explicitly.
--- a/drivers/staging/wlan-ng/cfg80211.c 2010-08-11 18:04:27.000000000
+0100
+++ b/drivers/staging/wlan-ng/cfg80211.c 2010-07-07 10:17:27.000000000
+0100
@@ -214,6 +214,7 @@ int prism2_get_key(struct wiphy *wiphy,
} else return -ENOENT;
params.key_len = len;
params.key = wlandev->wep_keys[key_index];
+ params.seq_len = 0;
callback(cookie, ¶ms);
return 0;
@@ -709,6 +710,8 @@ struct wiphy *wlan_create_wiphy(struct d
priv->band.n_channels = ARRAY_SIZE(prism2_channels);
priv->band.bitrates = priv->rates;
priv->band.n_bitrates = ARRAY_SIZE(prism2_rates);
+ priv->band.band = IEEE80211_BAND_2GHZ;
+ priv->band.ht_cap.ht_supported = false;
wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band;
set_wiphy_dev(wiphy, dev);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists