nl80211: Use the monitor interface if socket tx status is not supported

Fixes hostapd on recent compat-wireless builds with older kernels.

Signed-hostap: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2012-09-23 13:28:31 +03:00 committed by Jouni Malinen
parent 9974381109
commit 73a3c6ffca

View file

@ -2661,10 +2661,10 @@ static int wpa_driver_nl80211_capa(struct wpa_driver_nl80211_data *drv)
drv->data_tx_status = info.data_tx_status; drv->data_tx_status = info.data_tx_status;
/* /*
* If poll command is supported mac80211 is new enough to * If poll command and tx status are supported, mac80211 is new enough
* have everything we need to not need monitor interfaces. * to have everything we need to not need monitor interfaces.
*/ */
drv->use_monitor = !info.poll_command_supported; drv->use_monitor = !info.poll_command_supported || !info.data_tx_status;
if (drv->device_ap_sme && drv->use_monitor) { if (drv->device_ap_sme && drv->use_monitor) {
/* /*