ath6kl: Fix a typo in ath6k context
authorEdward Lu <elu@qca.qualcomm.com>
Tue, 30 Aug 2011 18:58:06 +0000 (21:58 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 31 Aug 2011 07:13:02 +0000 (10:13 +0300)
Signed-off-by: Edward Lu <elu@qca.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/ath/ath6kl/core.h
drivers/net/wireless/ath/ath6kl/init.c

index 72735ee0ee5e5dc7ee47a1626d61f0f335d3259d..af8e9ccb256d2eb233b285c7c42a59f00135d4f3 100644 (file)
@@ -168,7 +168,8 @@ static int ath6kl_set_auth_type(struct ath6kl *ar,
 static int ath6kl_set_cipher(struct ath6kl *ar, u32 cipher, bool ucast)
 {
        u8 *ar_cipher = ucast ? &ar->prwise_crypto : &ar->grp_crypto;
-       u8 *ar_cipher_len = ucast ? &ar->prwise_crypto_len : &ar->grp_crpto_len;
+       u8 *ar_cipher_len = ucast ? &ar->prwise_crypto_len :
+               &ar->grp_crypto_len;
 
        ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s: cipher 0x%x, ucast %u\n",
                   __func__, cipher, ucast);
@@ -371,14 +372,14 @@ static int ath6kl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
                   __func__,
                   ar->auth_mode, ar->dot11_auth_mode, ar->prwise_crypto,
                   ar->prwise_crypto_len, ar->grp_crypto,
-                  ar->grp_crpto_len, ar->ch_hint);
+                  ar->grp_crypto_len, ar->ch_hint);
 
        ar->reconnect_flag = 0;
        status = ath6kl_wmi_connect_cmd(ar->wmi, ar->nw_type,
                                        ar->dot11_auth_mode, ar->auth_mode,
                                        ar->prwise_crypto,
                                        ar->prwise_crypto_len,
-                                       ar->grp_crypto, ar->grp_crpto_len,
+                                       ar->grp_crypto, ar->grp_crypto_len,
                                        ar->ssid_len, ar->ssid,
                                        ar->req_bssid, ar->ch_hint,
                                        ar->connect_ctrl_flags);
@@ -688,7 +689,7 @@ void ath6kl_cfg80211_disconnect_event(struct ath6kl *ar, u8 reason,
                                        ar->prwise_crypto,
                                        ar->prwise_crypto_len,
                                        ar->grp_crypto,
-                                       ar->grp_crpto_len,
+                                       ar->grp_crypto_len,
                                        ar->ssid_len,
                                        ar->ssid,
                                        ar->req_bssid,
@@ -1277,13 +1278,13 @@ static int ath6kl_cfg80211_join_ibss(struct wiphy *wiphy,
                   __func__,
                   ar->auth_mode, ar->dot11_auth_mode, ar->prwise_crypto,
                   ar->prwise_crypto_len, ar->grp_crypto,
-                  ar->grp_crpto_len, ar->ch_hint);
+                  ar->grp_crypto_len, ar->ch_hint);
 
        status = ath6kl_wmi_connect_cmd(ar->wmi, ar->nw_type,
                                        ar->dot11_auth_mode, ar->auth_mode,
                                        ar->prwise_crypto,
                                        ar->prwise_crypto_len,
-                                       ar->grp_crypto, ar->grp_crpto_len,
+                                       ar->grp_crypto, ar->grp_crypto_len,
                                        ar->ssid_len, ar->ssid,
                                        ar->req_bssid, ar->ch_hint,
                                        ar->connect_ctrl_flags);
index 99cabd251caf79d00e10408e3c21f0eaa0eb7090..60e2291fecc31d565984ae74d5d6088887db39a7 100644 (file)
@@ -380,7 +380,7 @@ struct ath6kl {
        u8 prwise_crypto;
        u8 prwise_crypto_len;
        u8 grp_crypto;
-       u8 grp_crpto_len;
+       u8 grp_crypto_len;
        u8 def_txkey_index;
        struct ath6kl_wep_key wep_key_list[WMI_MAX_KEY_INDEX + 1];
        u8 bssid[ETH_ALEN];
index 3b99ae2dfb18c5f1a7771532a11b732841ae5757..32b7ef5e2acad1693be947a415cb89d5494d603d 100644 (file)
@@ -85,7 +85,7 @@ void ath6kl_init_profile_info(struct ath6kl *ar)
        ar->prwise_crypto = NONE_CRYPT;
        ar->prwise_crypto_len = 0;
        ar->grp_crypto = NONE_CRYPT;
-       ar->grp_crpto_len = 0;
+       ar->grp_crypto_len = 0;
        memset(ar->wep_key_list, 0, sizeof(ar->wep_key_list));
        memset(ar->req_bssid, 0, sizeof(ar->req_bssid));
        memset(ar->bssid, 0, sizeof(ar->bssid));