nl80211: Fix key configuration in wpa_supplicant AP mode
This commit is contained in:
parent
bc19f67240
commit
de12717a56
1 changed files with 4 additions and 1 deletions
|
@ -2072,9 +2072,12 @@ static int wpa_driver_nl80211_set_key(const char *ifname, void *priv,
|
||||||
*/
|
*/
|
||||||
if (ret || !set_tx || alg == WPA_ALG_NONE)
|
if (ret || !set_tx || alg == WPA_ALG_NONE)
|
||||||
return ret;
|
return ret;
|
||||||
#ifdef HOSTAPD /* FIX: is this needed? */
|
#ifdef HOSTAPD
|
||||||
if (addr)
|
if (addr)
|
||||||
return ret;
|
return ret;
|
||||||
|
#else /* HOSTAPD */
|
||||||
|
if (drv->nlmode == NL80211_IFTYPE_AP && addr)
|
||||||
|
return ret;
|
||||||
#endif /* HOSTAPD */
|
#endif /* HOSTAPD */
|
||||||
|
|
||||||
msg = nlmsg_alloc();
|
msg = nlmsg_alloc();
|
||||||
|
|
Loading…
Reference in a new issue