Skip to contentSkip to conversation

wireless: Incorrect LEAP authentication algorithm identifier.

PATCH In review Senthil Balasubramanian 3 participants 4 messages Dec 4, 2008 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wireless: Incorrect LEAP authentication algorithm identifier.

This patch fixes a regression introduced by
"wireless: avoid some net/ieee80211.h vs. linux/ieee80211.h conflicts" LEAP authentication algorithm identifier should be 128.

---
 include/linux/ieee80211.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/ieee80211.h +1 -1
index a6ec928..c4e6ca1 100644
@@ -836,7 +836,7 @@ struct ieee80211_ht_info {
 /* Authentication algorithms */
 #define WLAN_AUTH_OPEN 0
 #define WLAN_AUTH_SHARED_KEY 1
-#define WLAN_AUTH_LEAP 2
+#define WLAN_AUTH_LEAP 128
 
 #define WLAN_AUTH_CHALLENGE_LEN 128
 
Signature · 1 line
1.6.0.4
#1 lore raw
Quoted 14 lines · Senthil Balasubramanian

This patch fixes a regression introduced by
"wireless: avoid some net/ieee80211.h vs. linux/ieee80211.h conflicts" LEAP authentication algorithm identifier should be 128.

---
 include/linux/ieee80211.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/ieee80211.h +0 -0
index a6ec928..c4e6ca1 100644

include/linux/ieee80211.h struct ieee80211_ht_info { · line 841

Quoted 7 lines
include/linux/ieee80211.h +1 -1
@@ -836,7 +836,7 @@ struct ieee80211_ht_info {
 /* Authentication algorithms */
 #define WLAN_AUTH_OPEN 0
 #define WLAN_AUTH_SHARED_KEY 1
-#define WLAN_AUTH_LEAP 2
+#define WLAN_AUTH_LEAP 128
 
 #define WLAN_AUTH_CHALLENGE_LEN 128

What is the regression? What problem does this cause?

AFAICT this value is only used internally, so it shouldn't matter what the actual value is.

John

Signature · 2 lines
John W. Linville		Linux should be at the core
[email protected]			of your literate lifestyle.
#2 lore raw
Quoted 5 lines · John W. Linville

include/linux/ieee80211.h struct ieee80211_ht_info { · line 839

Quoted 2 lines · Senthil Balasubramanian
include/linux/ieee80211.h +1 -1
-#define WLAN_AUTH_LEAP 2
+#define WLAN_AUTH_LEAP 128

What is the regression? What problem does this cause?

The current code fails to authenticate when the AP (most likely Cisco AP) is configured for "Network EAP" mode. The old code (before the cleanup) allowed the authentication to be completed successfully.

Quoted 2 lines

AFAICT this value is only used internally, so it shouldn't matter what the actual value is.

Nope. WLAN_AUTH_* are the values used in Authentication frames (Authentication Algorithm field). See ieee80211_send_auth() in net/mac80211/mlme.c. The ifsta->auth_alg must have a value that matches with the algorithm identifier in the frame and in the case of LEAP ("Network EAP"), this value is 128, not 2.

Signature · 1 line
Jouni Malinen                                            PGP id EFC895FA
#3 lore raw
Quoted 10 lines · Jouni Malinen
Quoted 2 lines · John W. Linville

AFAICT this value is only used internally, so it shouldn't matter what the actual value is.

Nope. WLAN_AUTH_* are the values used in Authentication frames (Authentication Algorithm field). See ieee80211_send_auth() in net/mac80211/mlme.c. The ifsta->auth_alg must have a value that matches with the algorithm identifier in the frame and in the case of LEAP ("Network EAP"), this value is 128, not 2.

OK, thanks for the specific reference.

John

Signature · 2 lines
John W. Linville		Linux should be at the core
[email protected]			of your literate lifestyle.