Skip to contentSkip to conversation

cfg80211: Clean up connect params and channel fetching

PATCH Applied Jouni Malinen 2 participants 2 messages Jan 14, 2014 – Jan 15, 2014 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 cfg80211: Clean up connect params and channel fetching

Addition of the frequency hints showed up couple of places in cfg80211 where pointers could be marked const and a shared function could be used to fetch a valid channel.

---
 include/net/cfg80211.h |    6 +++---
 net/wireless/nl80211.c |   42 +++++++++++++++++++++++++-----------------
 2 files changed, 28 insertions(+), 20 deletions(-)
include/net/cfg80211.h +3 -3
index 27dd032..9237b26 100644
@@ -1732,9 +1732,9 @@ struct cfg80211_ibss_params {
 struct cfg80211_connect_params {
 	struct ieee80211_channel *channel;
 	struct ieee80211_channel *channel_hint;
-	u8 *bssid;
-	u8 *bssid_hint;
-	u8 *ssid;
+	const u8 *bssid;
+	const u8 *bssid_hint;
+	const u8 *ssid;
 	size_t ssid_len;
 	enum nl80211_auth_type auth_type;
 	u8 *ie;
net/wireless/nl80211.c +25 -17

68 lines not on this page · raw message

Signature · 5 lines
1.7.9.5


-- 
Jouni Malinen                                            PGP id EFC895FA
maintainer Applied
#1 lore raw
Quoted 3 lines · Jouni Malinen

Addition of the frequency hints showed up couple of places in cfg80211 where pointers could be marked const and a shared function could be used to fetch a valid channel.

Thanks, applied.

johannes