From patchwork Thu May 22 04:59:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bing Zhao X-Patchwork-Id: 4220221 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D65419F1CD for ; Thu, 22 May 2014 04:59:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5DE0320272 for ; Thu, 22 May 2014 04:59:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD7522026C for ; Thu, 22 May 2014 04:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751499AbaEVE7q (ORCPT ); Thu, 22 May 2014 00:59:46 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:7810 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751093AbaEVE7p (ORCPT ); Thu, 22 May 2014 00:59:45 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id s4M4xhpD020385; Wed, 21 May 2014 21:59:43 -0700 Received: from sc-owa.marvell.com ([199.233.58.135]) by mx0b-0016f401.pphosted.com with ESMTP id 1m0mya4m76-7 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 21 May 2014 21:59:43 -0700 Received: from SC-VEXCH1.marvell.com ([10.93.76.137]) by SC-OWA.marvell.com ([::1]) with mapi; Wed, 21 May 2014 21:59:42 -0700 From: Bing Zhao To: Michael Howard CC: "linux-wireless@vger.kernel.org" Date: Wed, 21 May 2014 21:59:41 -0700 Subject: RE: Mwifiex driver on Globalscale Mirabox Thread-Topic: Mwifiex driver on Globalscale Mirabox Thread-Index: Ac9x3eBNw4lxLB9vQkG5v5gqBB2KPQDnEOIA Message-ID: <477F20668A386D41ADCC57781B1F70430F70F5D909@SC-VEXCH1.marvell.com> References: <5346DED8.2030704@free.fr> <53480138.2080805@free.fr> <53733AB4.7010500@free.fr> <20140514215126.GA15419@us.netrek.org> <5374F638.6000505@dewberryfields.co.uk> <537774B4.2000905@dewberryfields.co.uk> In-Reply-To: <537774B4.2000905@dewberryfields.co.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.96, 1.0.14, 0.0.0000 definitions=2014-05-22_02:2014-05-22, 2014-05-22, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1405220065 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Michael, > root@mirabox:/etc/init.d# ./hostapd start > [....] Starting advanced IEEE 802.11 management: hostapddevice uap0 > entered promiscuous mode > br0: port 2(uap0) entered listening state > br0: port 2(uap0) entered listening state > mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0x112 error, result=0x2 That's odd. cmd 0x112 is 11ac specific command. 8787 doesn't support 11ac. Could you print out the following flags? Thanks, Bing diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index 21ee27a..d19e66b 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c @@ -1473,6 +1473,8 @@ static int mwifiex_cfg80211_start_ap(struct wiphy *wiphy, mwifiex_set_ht_params(priv, bss_cfg, params); + wiphy_err(wiphy, "is_hw_11ac_capable=%#x\n", + priv->adapter->is_hw_11ac_capable); if (priv->adapter->is_hw_11ac_capable) { mwifiex_set_vht_params(priv, bss_cfg, params); mwifiex_set_vht_width(priv, params->chandef.width, diff --git a/drivers/net/wireless/mwifiex/cmdevt.c b/drivers/net/wireless/mwifiex/cmdevt.c index 8dee6c8..8823ad5 100644 --- a/drivers/net/wireless/mwifiex/cmdevt.c +++ b/drivers/net/wireless/mwifiex/cmdevt.c @@ -1508,6 +1508,8 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv, adapter->fw_api_ver = (adapter->fw_release_number >> 16) & 0xff; adapter->number_of_antenna = le16_to_cpu(hw_spec->number_of_antenna); + dev_info(adapter->dev, "dot_11ac_dev_cap=%#x\n", + le32_to_cpu(hw_spec->dot_11ac_dev_cap)); if (le32_to_cpu(hw_spec->dot_11ac_dev_cap)) { adapter->is_hw_11ac_capable = true;