cfg80211: Clean up connect params and channel fetching
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.
Signed-off-by Jouni Malinen <[email protected]>
--- include/net/cfg80211.h | 6 +++--- net/wireless/nl80211.c | 42 +++++++++++++++++++++++++----------------- 2 files changed, 28 insertions(+), 20 deletions(-)
include/net/cfg80211.h +3 -3
@@ -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
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