Changeset f7eb182 in mainline
- Timestamp:
- 2018-08-03T17:10:12Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8da69d
- Parents:
- 158da11
- Location:
- uspace/lib/ieee80211
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ieee80211/include/ieee80211_private.h
r158da11 rf7eb182 100 100 #define IEEE80211_TKIP_HEADER_LENGTH 8 101 101 #define IEEE80211_CCMP_HEADER_LENGTH 8 102 /* Maximum of the above. */ 103 #define IEEE80211_MAX_HEADER_LENGTH 8 102 104 103 105 /** IEEE 802.11 PTK key length. */ -
uspace/lib/ieee80211/src/ieee80211.c
r158da11 rf7eb182 571 571 /* Init crypto data. */ 572 572 bool add_mic = false; 573 const size_t max_head_space = max(IEEE80211_TKIP_HEADER_LENGTH,574 IEEE80211_CCMP_HEADER_LENGTH);575 573 size_t head_space = 0, mic_space = 0; 576 574 uint16_t crypto = 0; 577 uint8_t head_data[ max_head_space];578 memset(head_data, 0, max_head_space);575 uint8_t head_data[IEEE80211_MAX_HEADER_LENGTH]; 576 memset(head_data, 0, sizeof(IEEE80211_MAX_HEADER_LENGTH)); 579 577 580 578 // TODO: Distinguish used key (pair/group) by dest address ?
Note:
See TracChangeset
for help on using the changeset viewer.