]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Simplify hapd_send_eapol() with monitor interface
authorJouni Malinen <j@w1.fi>
Fri, 3 Jan 2020 10:08:58 +0000 (12:08 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 3 Jan 2020 10:08:58 +0000 (12:08 +0200)
commit14cc3d10ca1024ab0b15bdd0ad98121067a7b111
tree3f5e4f9c0a3055b223c7af6ba72f9643d00d19e0
parent16a2667203ea059fb7012ee1def0f4f798711c09
nl80211: Simplify hapd_send_eapol() with monitor interface

Call nl80211_send_monitor() directly instead of going through
wpa_driver_nl80211_send_frame() for the case where monitor interface is
used for AP mode management purposes. drv->use_monitor has to be 1 in
this code path, so wpa_driver_nl80211_send_frame() was calling
nl80211_send_monitor() unconditionally for this code path and that extra
function call can be removed here to simplify the implementation.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c