cfg80211: don't set privacy w/o key
When wpa_supplicant is used to connect to open networks, it causes the wdev->wext.keys to point to key memory, but that key memory is all empty. Only use privacy when there is a default key to be used. Signed-off-by: NJohannes Berg <johannes@sipsolutions.net> Tested-by: NLuis R. Rodriguez <lrodriguez@atheros.com> Tested-by: NKalle Valo <kalle.valo@iki.fi> Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
Showing
想要评论请 注册 或 登录