libertas: don't write wdev->ssid/_len
authorJohannes Berg <johannes.berg@intel.com>
Tue, 17 Oct 2017 19:37:45 +0000 (21:37 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Oct 2017 10:47:55 +0000 (12:47 +0200)
When joining an IBSS network, wdev->ssid/_len will already be
set, so there's no need to write them. In any case, they are
internal cfg80211 values, and have very little user-visible
impact.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas/cfg.c

index 71ba2c8d09b50b834837cb606024927dd221f8e1..bb76707881cd4d8da94f28e6e9519ed4997aae50 100644 (file)
@@ -1698,9 +1698,6 @@ static void lbs_join_post(struct lbs_private *priv,
                                  0, GFP_KERNEL);
        cfg80211_put_bss(priv->wdev->wiphy, bss);
 
-       memcpy(priv->wdev->ssid, params->ssid, params->ssid_len);
-       priv->wdev->ssid_len = params->ssid_len;
-
        cfg80211_ibss_joined(priv->dev, bssid, params->chandef.chan,
                             GFP_KERNEL);