Ignore:
Timestamp:
2015-04-13T20:48:33Z (10 years ago)
Author:
Jan Kolarik <kolarik@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc575ef9
Parents:
053fc2b
Message:

Added TKIP support, handling old WPA in 4way handshake, some fixes in wifi_supplicant app

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ieee80211/include/ieee80211_private.h

    r053fc2b ra931b7b  
    5252
    5353/* Timeout in us for waiting to finish 4-way handshake process. */
    54 #define HANDSHAKE_TIMEOUT 3000000
     54#define HANDSHAKE_TIMEOUT 5000000
    5555
    5656/* Scanning period. */
     
    8686/* TK offset inside PTK. */
    8787#define TK_OFFSET 32
    88 
    89 /* Length of CCMP header we need to reserve. */
    90 #define IEEE80211_CCMP_HEADER_LENGTH 8
    9188
    9289/*
     
    9592 */
    9693#define PRF_CRYPT_DATA_LENGTH 2*32 + 2*ETH_ADDR
     94
     95/* Special room in header reserved for encryption. */
     96typedef 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. */
     102typedef enum {
     103        IEEE80211_TKIP_FOOTER_LENGTH = 4,
     104        IEEE80211_CCMP_FOOTER_LENGTH = 8
     105} ieee80211_encrypt_footer_reserve_length_t;
    97106
    98107/** IEEE 802.11 PTK key length. */
     
    199208        time_t last_beacon;
    200209        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;
    203212} ieee80211_scan_result_link_t;
    204213
Note: See TracChangeset for help on using the changeset viewer.