History

mac80211: Allow AUTH_DATA to be used for FILS

The special SAE case should be limited only for SAE since the more generic AUTH_DATA can now be used with other authentication algorithms as well.

Jouni Malinen committed 10 years ago

Commit 6ec63611 parent 11b6b5a1 file · +6 −3Browse files

Unified · Split

net/mac80211/mlme.c+6−3
@@ -4491,9 +4491,12 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata, · 4490 unmodified lines
44914491 auth_data->bss = req->bss;
44924492
44934493 if (req->auth_data_len >= 4) {
4494− __le16 *pos = (__le16 *) req->auth_data;
4495− auth_data->sae_trans = le16_to_cpu(pos[0]);
4496− auth_data->sae_status = le16_to_cpu(pos[1]);
4494+ if (req->auth_type == NL80211_AUTHTYPE_SAE) {
4495+ __le16 *pos = (__le16 *) req->auth_data;
4496+
4497+ auth_data->sae_trans = le16_to_cpu(pos[0]);
4498+ auth_data->sae_status = le16_to_cpu(pos[1]);
4499+ }
44974500 memcpy(auth_data->data, req->auth_data + 4,
44984501 req->auth_data_len - 4);
44994502 auth_data->data_len += req->auth_data_len - 4;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t