From patchwork Fri Sep 14 13:12:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 183917 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) by ozlabs.org (Postfix) with ESMTP id CB2D82C0085 for ; Fri, 14 Sep 2012 23:13:04 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 9519F17C002; Fri, 14 Sep 2012 09:12:55 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z4gcEMzQVxJ1; Fri, 14 Sep 2012 09:12:55 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 9996517C00D; Fri, 14 Sep 2012 09:12:42 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 27B989D089 for ; Fri, 14 Sep 2012 09:12:39 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dit5nvgI7Tzo for ; Fri, 14 Sep 2012 09:12:33 -0400 (EDT) Received: from nbd.name (nbd.name [46.4.11.11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 1B5979D1EA for ; Fri, 14 Sep 2012 09:12:33 -0400 (EDT) Received: by nf.local (Postfix, from userid 501) id 1DF8E7BB969; Fri, 14 Sep 2012 15:12:29 +0200 (CEST) From: Felix Fietkau To: hostap@lists.shmoo.com Subject: [PATCH 5/5] hostap: use the monitor interface if socket tx status is not supported Date: Fri, 14 Sep 2012 15:12:29 +0200 Message-Id: <1347628349-34362-5-git-send-email-nbd@openwrt.org> X-Mailer: git-send-email 1.7.9.6 (Apple Git-31.1) In-Reply-To: <1347628349-34362-4-git-send-email-nbd@openwrt.org> References: <1347628349-34362-1-git-send-email-nbd@openwrt.org> <1347628349-34362-2-git-send-email-nbd@openwrt.org> <1347628349-34362-3-git-send-email-nbd@openwrt.org> <1347628349-34362-4-git-send-email-nbd@openwrt.org> X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Fixes hostapd on recent compat-wireless builds with older kernels Signed-hostap: Felix Fietkau --- src/drivers/driver_nl80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 66389da..a5659c9 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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) { /*