]> Pileus Git - ~andy/linux/commitdiff
wil6210: Init Rx vring right after reset
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Sun, 9 Jun 2013 06:12:55 +0000 (09:12 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Jun 2013 19:06:52 +0000 (15:06 -0400)
at the vring initialisation, memory pool get allocated in the FW.
Make it 1-st because FW need this memory pool to precess
next commands

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/cfg80211.c
drivers/net/wireless/ath/wil6210/main.c

index 189c3078ef7d99083d56efe298d5d29449de2d11..61c302a6bdeaa38ef1a1d20b3ac1e477db794745 100644 (file)
@@ -454,6 +454,11 @@ static int wil_cfg80211_start_ap(struct wiphy *wiphy,
        if (rc)
                return rc;
 
+       /* Rx VRING. */
+       rc = wil_rx_init(wil);
+       if (rc)
+               return rc;
+
        rc = wmi_set_ssid(wil, info->ssid_len, info->ssid);
        if (rc)
                return rc;
@@ -482,8 +487,6 @@ static int wil_cfg80211_start_ap(struct wiphy *wiphy,
        if (rc)
                return rc;
 
-       /* Rx VRING. After MAC and beacon */
-       rc = wil_rx_init(wil);
 
        netif_carrier_on(ndev);
 
index c97b864667c57db00226daa95e5e53ece033f1aa..8cafa456398a6a233a26aa0267db346f947ab03e 100644 (file)
@@ -295,6 +295,11 @@ static int __wil_up(struct wil6210_priv *wil)
        if (rc)
                return rc;
 
+       /* Rx VRING. After MAC and beacon */
+       rc = wil_rx_init(wil);
+       if (rc)
+               return rc;
+
        /* FIXME Firmware works now in PBSS mode(ToDS=0, FromDS=0) */
        wmi_nettype = wil_iftype_nl2wmi(NL80211_IFTYPE_ADHOC);
        switch (wdev->iftype) {
@@ -356,9 +361,6 @@ static int __wil_up(struct wil6210_priv *wil)
                        return rc;
        }
 
-       /* Rx VRING. After MAC and beacon */
-       wil_rx_init(wil);
-
        napi_enable(&wil->napi_rx);
        napi_enable(&wil->napi_tx);