]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Fix interface selection for the nl80211 driver
authorFelix Fietkau <nbd@openwrt.org>
Sat, 6 Mar 2010 20:22:56 +0000 (22:22 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 6 Mar 2010 20:22:56 +0000 (22:22 +0200)
commita2e40bb6508dc8d5443144c8c4976a742470b6bb
treefde282e1c796332d8f58b339d25522a5f14b7517
parent39f42d1193bc55cba6cf28f9bf8d16fc9cd24a76
hostapd: Fix interface selection for the nl80211 driver

This patch allows the nl80211 driver to create its own per-bss context
and pass it to the drv_priv pointer of the hostapd bss state.
With this and the following patch, stations can associate to and switch
between multiple BSS interfaces of a single wiphy.
This obsoletes a few instances of passing ifname to a callback, those
can be removed in a separate patch.
It might also be useful to move more fields from the driver data to the
per-bss data structure in the future.
src/ap/ap_drv_ops.c
src/ap/ap_drv_ops.h
src/ap/hostapd.c
src/drivers/driver.h
src/drivers/driver_nl80211.c
src/drivers/driver_test.c