Message ID | 1359389513-1554-3-git-send-email-sven@narfation.org (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 33de803..3fb3491 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -766,10 +766,7 @@ static int nl80211_key_allowed(struct wireless_dev *wdev) case NL80211_IFTYPE_AP_VLAN: case NL80211_IFTYPE_P2P_GO: case NL80211_IFTYPE_MESH_POINT: - break; case NL80211_IFTYPE_ADHOC: - if (!wdev->current_bss) - return -ENOLINK; break; case NL80211_IFTYPE_STATION: case NL80211_IFTYPE_P2P_CLIENT:
WPA_NONE will use a shared group key for unicast and multicast. It is therefore better to allow early setting of keys to prevent any leakage of information through multicast frames. Signed-off-by: Sven Eckelmann <sven@narfation.org> --- net/wireless/nl80211.c | 3 --- 1 file changed, 3 deletions(-)