From: Jouni Malinen Date: Sun, 11 Apr 2010 16:35:24 +0000 (+0300) Subject: nl80211: Fix key configuration in wpa_supplicant AP mode X-Git-Tag: hostap_0_7_2~52 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=libeap.git;a=commitdiff_plain;h=de12717a566bba95e4763a027b74ee079327966b nl80211: Fix key configuration in wpa_supplicant AP mode --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index d813214..a06fa84 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -2072,9 +2072,12 @@ static int wpa_driver_nl80211_set_key(const char *ifname, void *priv, */ if (ret || !set_tx || alg == WPA_ALG_NONE) return ret; -#ifdef HOSTAPD /* FIX: is this needed? */ +#ifdef HOSTAPD if (addr) return ret; +#else /* HOSTAPD */ + if (drv->nlmode == NL80211_IFTYPE_AP && addr) + return ret; #endif /* HOSTAPD */ msg = nlmsg_alloc();