diff mbox

Mwifiex driver on Globalscale Mirabox

Message ID 477F20668A386D41ADCC57781B1F70430F70F5D909@SC-VEXCH1.marvell.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Bing Zhao May 22, 2014, 4:59 a.m. UTC
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 mbox

Patch

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;