]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Check support for rekey offload on first use
authorJouni Malinen <j@w1.fi>
Mon, 5 Jan 2015 10:00:09 +0000 (12:00 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 5 Jan 2015 10:00:09 +0000 (12:00 +0200)
commit64ae244763a94f17f459cd4022a6dfa0ce40943e
treea11aba5ff987606d0a9425e9bf9bbcad3d2d862b
parent8aeb6e3dbcb1601fdb6c4b7ca473daf3f371c0da
nl80211: Check support for rekey offload on first use

While there is no explicit driver capability advertisement for this in
nl80211, the EOPNOTSUPP response can be interpreted as a clear
indication of NL80211_CMD_SET_REKEY_OFFLOAD not being supported. Check
for that and don't try to offload keys again if the driver has not use
for them.

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