wireless: Incorrect LEAP authentication algorithm identifier.
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
@@ -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
Quoted 14 lines · Senthil Balasubramanian
This patch fixes a regression introduced by
"wireless: avoid somenet/ieee80211.hvs.linux/ieee80211.hconflicts" LEAP authentication algorithm identifier should be 128.Signed-off-by Senthil Balasubramanian <[email protected]>--- include/linux/ieee80211.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)include/linux/ieee80211.h +0
-0
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.
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 128What 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
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()innet/mac80211/mlme.c. Theifsta->auth_algmust 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.