Subject: automatic to choose auth type in firmware

NL80211 will send NL80211_AUTHTYPE_AUTOMATIC for automatic auth type.
Previous version, this is handled in driver but it needs 10 seconds timeout
to try next auth type.

Since firmware supports automatic auth, so move the work to firmware to reduce 
connection time
during automatic auth process.

ps: correct struct type to AR_SOFTC_DEV_T in this patch too.

Signed-off-by: Samuel Chang <samu...@qca.qualcomm.com>


diff -ruN kernel-2.6.37.6-151.5/drivers/staging/ar6003/os/linux/cfg80211.c 
kernel-2.6.37.6-151.5_automatic_auth_in_fw_patch/drivers/staging/ar6003/os/linux/cfg80211.c
--- kernel-2.6.37.6-151.5/drivers/staging/ar6003/os/linux/cfg80211.c    
2011-07-16 00:01:40.781539388 +0800
+++ 
kernel-2.6.37.6-151.5_automatic_auth_in_fw_patch/drivers/staging/ar6003/os/linux/cfg80211.c
 2011-07-20 10:34:28.279418520 +0800
@@ -170,8 +170,8 @@
         arPriv->arDot11AuthMode = LEAP_AUTH;
         break;
        case NL80211_AUTHTYPE_AUTOMATIC:
-        arPriv->arDot11AuthMode = OPEN_AUTH;
-        arPriv->arAutoAuthStage = AUTH_OPEN_IN_PROGRESS;
+        /*Let firmware to choose authtype*/
+        arPriv->arDot11AuthMode = OPEN_AUTH | SHARED_AUTH;
         break;
     default:
         arPriv->arDot11AuthMode = OPEN_AUTH;
@@ -1731,7 +1731,7 @@
     }
 
     /* create a new wiphy for use with cfg80211 */
-    wdev->wiphy = wiphy_new(&ar6k_cfg80211_ops, sizeof(AR_SOFTC_T));
+    wdev->wiphy = wiphy_new(&ar6k_cfg80211_ops, sizeof(AR_SOFTC_DEV_T));
     if(!wdev->wiphy) {
         AR_DEBUG_PRINTF(ATH_DEBUG_ERR,
                         ("%s: Couldn't allocate wiphy device\n", __func__));
Subject: automatic to choose auth type in firmware

NL80211 will send NL80211_AUTHTYPE_AUTOMATIC for automatic auth type.
Previous version, this is handled in driver but it needs 10 seconds timeout
to try next auth type.

Since firmware supports automatic auth, so move the work to firmware to reduce connection time
during automatic auth process.

ps: correct struct type to AR_SOFTC_DEV_T in this patch too.

Signed-off-by: Samuel Chang <samu...@qca.qualcomm.com>


diff -ruN kernel-2.6.37.6-151.5/drivers/staging/ar6003/os/linux/cfg80211.c kernel-2.6.37.6-151.5_automatic_auth_in_fw_patch/drivers/staging/ar6003/os/linux/cfg80211.c
--- kernel-2.6.37.6-151.5/drivers/staging/ar6003/os/linux/cfg80211.c	2011-07-16 00:01:40.781539388 +0800
+++ kernel-2.6.37.6-151.5_automatic_auth_in_fw_patch/drivers/staging/ar6003/os/linux/cfg80211.c	2011-07-20 10:34:28.279418520 +0800
@@ -170,8 +170,8 @@
         arPriv->arDot11AuthMode = LEAP_AUTH;
         break;
 	case NL80211_AUTHTYPE_AUTOMATIC:
-        arPriv->arDot11AuthMode = OPEN_AUTH;
-        arPriv->arAutoAuthStage = AUTH_OPEN_IN_PROGRESS;
+        /*Let firmware to choose authtype*/
+        arPriv->arDot11AuthMode = OPEN_AUTH | SHARED_AUTH;
         break;
     default:
         arPriv->arDot11AuthMode = OPEN_AUTH;
@@ -1731,7 +1731,7 @@
     }
 
     /* create a new wiphy for use with cfg80211 */
-    wdev->wiphy = wiphy_new(&ar6k_cfg80211_ops, sizeof(AR_SOFTC_T));
+    wdev->wiphy = wiphy_new(&ar6k_cfg80211_ops, sizeof(AR_SOFTC_DEV_T));
     if(!wdev->wiphy) {
         AR_DEBUG_PRINTF(ATH_DEBUG_ERR,
                         ("%s: Couldn't allocate wiphy device\n", __func__));
_______________________________________________
MeeGo-kernel mailing list
MeeGo-kernel@lists.meego.com
http://lists.meego.com/listinfo/meego-kernel

Reply via email to