This patch makes mac80211 refuse a WEP key whose length is not WEP40 nor WEP104.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -595,6 +595,15 @@ enum ieee80211_key_alg { · 594 unmodified lines | ||
| 595 | 595 | ALG_CCMP, |
| 596 | 596 | }; |
| 597 | 597 | |
| 598 | +/** | |
| 599 | + * enum ieee80211_key_len - key length | |
| 600 | + * @WEP40: WEP 5 byte long key | |
| 601 | + * @WEP104: WEP 13 byte long key | |
| 602 | + */ | |
| 603 | +enum ieee80211_key_len { | |
| 604 | + LEN_WEP40 = 5, | |
| 605 | + LEN_WEP104 = 13, | |
| 606 | +}; | |
| 598 | 607 | |
| 599 | 608 | /** |
| 600 | 609 | * enum ieee80211_key_flags - key flags |