]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Use the monitor interface if socket tx status is not supported
authorFelix Fietkau <nbd@openwrt.org>
Sun, 23 Sep 2012 10:28:31 +0000 (13:28 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 23 Sep 2012 10:28:31 +0000 (13:28 +0300)
Fixes hostapd on recent compat-wireless builds with older kernels.

Signed-hostap: Felix Fietkau <nbd@openwrt.org>

src/drivers/driver_nl80211.c

index 66389da9ae2ad644cedd5bee6b7abc57b5da5fb5..a5659c922a9da4cc6fdc1abe31eb95957de05bcf 100644 (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;
 
        /*
-        * If poll command is supported mac80211 is new enough to
-        * have everything we need to not need monitor interfaces.
+        * If poll command and tx status are supported, mac80211 is new enough
+        * 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) {
                /*