From: Zhao, Gang Date: Wed, 19 Mar 2014 15:02:21 +0000 (+0800) Subject: cfg80211: slightly clean up of cfg80211_sme_connect() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~279^2^2~12^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=babd3a272123da5b9bc1da943fad74c581a9df6c;p=pandora-kernel.git cfg80211: slightly clean up of cfg80211_sme_connect() Wdev->ssid_len has already been set in cfg80211_connect() and is equal to connect->ssid_len. Use wdev->ssid_len instead of connect->ssid_len so it will be consistent with previous ssid assignment statement. If bss is found in cfg80211_get_conn_bss(), wdev->conn->state is set to CFG80211_CONN_AUTHENTICATE_NEXT in there. So it's not needed to set it manually to CFG80211_CONN_AUTHENTICATE_NEXT if bss is found in that function. Signed-off-by: Zhao, Gang Signed-off-by: Johannes Berg --- Reading git-diff-tree failed