Changeset a931b7b in mainline for uspace/lib/ieee80211/include
- Timestamp:
- 2015-04-13T20:48:33Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc575ef9
- Parents:
- 053fc2b
- Location:
- uspace/lib/ieee80211/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ieee80211/include/ieee80211.h
r053fc2b ra931b7b 82 82 } ieee80211_key_flags_t; 83 83 84 typedef enum { 85 IEEE80211_TKIP_TX_MIC_OFFSET = 16, 86 IEEE80211_TKIP_RX_MIC_OFFSET = 24 87 } ieee80211_tkip_mic_offset_t; 88 84 89 /** Key config structure. */ 85 90 typedef struct { -
uspace/lib/ieee80211/include/ieee80211_impl.h
r053fc2b ra931b7b 53 53 extern int ieee80211_scan_impl(ieee80211_dev_t *ieee80211_dev); 54 54 extern int ieee80211_prf(uint8_t *key, uint8_t *data, uint8_t *hash, 55 hash_func_t hash_sel); 55 size_t output_size); 56 extern int ieee80211_rc4_key_unwrap(uint8_t *key, uint8_t *data, 57 size_t data_size, uint8_t *output); 56 58 extern int ieee80211_aes_key_unwrap(uint8_t *kek, uint8_t *data, 57 59 size_t data_size, uint8_t *output); -
uspace/lib/ieee80211/include/ieee80211_private.h
r053fc2b ra931b7b 52 52 53 53 /* Timeout in us for waiting to finish 4-way handshake process. */ 54 #define HANDSHAKE_TIMEOUT 300000054 #define HANDSHAKE_TIMEOUT 5000000 55 55 56 56 /* Scanning period. */ … … 86 86 /* TK offset inside PTK. */ 87 87 #define TK_OFFSET 32 88 89 /* Length of CCMP header we need to reserve. */90 #define IEEE80211_CCMP_HEADER_LENGTH 891 88 92 89 /* … … 95 92 */ 96 93 #define PRF_CRYPT_DATA_LENGTH 2*32 + 2*ETH_ADDR 94 95 /* Special room in header reserved for encryption. */ 96 typedef enum { 97 IEEE80211_TKIP_HEADER_LENGTH = 8, 98 IEEE80211_CCMP_HEADER_LENGTH = 8 99 } ieee80211_encrypt_header_reserve_length_t; 100 101 /* Special room in footer reserved for encryption. */ 102 typedef enum { 103 IEEE80211_TKIP_FOOTER_LENGTH = 4, 104 IEEE80211_CCMP_FOOTER_LENGTH = 8 105 } ieee80211_encrypt_footer_reserve_length_t; 97 106 98 107 /** IEEE 802.11 PTK key length. */ … … 199 208 time_t last_beacon; 200 209 ieee80211_scan_result_t scan_result; 201 uint8_t rsn_copy[256];202 size_t rsn_copy_len;210 uint8_t auth_ie[256]; 211 size_t auth_ie_len; 203 212 } ieee80211_scan_result_link_t; 204 213
Note:
See TracChangeset
for help on using the changeset viewer.