From patchwork Thu Oct 22 18:21:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lennert Buytenhek X-Patchwork-Id: 55427 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9MIs9J0009066 for ; Thu, 22 Oct 2009 18:54:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756776AbZJVSyD (ORCPT ); Thu, 22 Oct 2009 14:54:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756756AbZJVSyA (ORCPT ); Thu, 22 Oct 2009 14:54:00 -0400 Received: from fw.wantstofly.org ([80.101.37.227]:59626 "EHLO mail.wantstofly.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755323AbZJVSxt (ORCPT ); Thu, 22 Oct 2009 14:53:49 -0400 Received: by mail.wantstofly.org (Postfix, from userid 500) id 6E78718E250; Thu, 22 Oct 2009 20:21:36 +0200 (CEST) Date: Thu, 22 Oct 2009 20:21:36 +0200 From: Lennert Buytenhek To: linux-wireless@vger.kernel.org Subject: [PATCH 24/28] mwl8k: add AP firmware handling to ->configure_filter() Message-ID: <20091022182136.GZ1583@mail.wantstofly.org> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 0e26a96..815f73f 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -3013,6 +3013,16 @@ static void mwl8k_configure_filter(struct ieee80211_hw *hw, struct mwl8k_cmd_pkt *cmd = (void *)(unsigned long)multicast; /* + * AP firmware doesn't allow fine-grained control over + * the receive filter. + */ + if (priv->ap_fw) { + *total_flags &= FIF_ALLMULTI | FIF_BCN_PRBRESP_PROMISC; + kfree(cmd); + return; + } + + /* * Enable hardware sniffer mode if FIF_CONTROL or * FIF_OTHER_BSS is requested. */