]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/drivers/driver_nl80211.c
nl80211: Use netlink connect socket for disconnect (ext auth)
authorCedric Izoard <Cedric.Izoard@ceva-dsp.com>
Mon, 26 Nov 2018 07:44:02 +0000 (07:44 +0000)
committerJouni Malinen <j@w1.fi>
Mon, 26 Nov 2018 17:24:31 +0000 (19:24 +0200)
commit10d32e2c8d96b9277dc18d3c1503ee382e16988c
tree931f79a8d5d89123f1e03cc10345c05de1769ff2
parent18a0508a41e31f81ba4faf2fe63e0086d78842b5
nl80211: Use netlink connect socket for disconnect (ext auth)

When external authentication is used, a specific netlink socket is used
to send the connect command. If the same socket is not used for
disconnect command, cfg80211 will discard the command. This constraint
was added into the kernel in commit bad292973363 ("nl80211: Reject
disconnect commands except from conn_owner"). That requires an update
for the hostap.git commit 40a68f33844f ("nl80211: Create a netlink
socket handle for the Connect interface").

Add a new flag into struct i802_bss to indicate if the special
nl_connect socket was used for the connect command. When sending
disconnect command this flag is tested to select the correct socket.

Signed-off-by: Cedric Izoard <cedric.izoard@ceva-dsp.com>
src/drivers/driver_nl80211.c
src/drivers/driver_nl80211.h
src/drivers/driver_nl80211_scan.c