Ignore:
Timestamp:
2015-04-06T10:47:51Z (10 years ago)
Author:
Jan Kolarik <kolarik@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d7dadcb4
Parents:
59fa7ab
Message:

Scanning whole 2.4GHz spectrum, created supplicant for managing connection between device STA and AP, finished association process between STA and AP, handling 4way handshake protocol used for key management, written needed cryptographic algorithms (AES, SHA1, HMAC, PBKDF2) for CCMP protocol, data communication on OPEN/CCMP networks.

File:
1 edited

Legend:

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

    r59fa7ab r1dcc0b9  
    4141#include <adt/list.h>
    4242#include <nic/nic.h>
     43#include <time.h>
    4344
    44 /* Max length of scan results array. */
     45/** Max length of scan results array. */
    4546#define IEEE80211_MAX_RESULTS_LENGTH 32
    4647
    47 /* Max SSID length including null character. */
     48/** Max SSID length including null character. */
    4849#define IEEE80211_MAX_SSID_LENGTH 35
     50
     51/** WiFi security authentication method indicator. */
     52typedef enum {
     53        IEEE80211_SECURITY_OPEN,
     54        IEEE80211_SECURITY_WEP,
     55        IEEE80211_SECURITY_WPA,
     56        IEEE80211_SECURITY_WPA2
     57} ieee80211_security_type_t;
     58
     59/** WiFi security suite indicator. */
     60typedef enum {
     61        IEEE80211_SECURITY_SUITE_WEP40,
     62        IEEE80211_SECURITY_SUITE_WEP104,
     63        IEEE80211_SECURITY_SUITE_CCMP,
     64        IEEE80211_SECURITY_SUITE_TKIP
     65} ieee80211_security_suite_t;
     66
     67/** WiFi security authentication method indicator. */
     68typedef enum {
     69        IEEE80211_SECURITY_AUTH_PSK,
     70        IEEE80211_SECURITY_AUTH_8021X
     71} ieee80211_security_auth_t;
     72
     73/** Structure for indicating security network security settings. */
     74typedef struct {
     75        int type;
     76        int group_alg;
     77        int pair_alg;
     78        int auth;
     79} ieee80211_security_t;
    4980
    5081/** Structure with scan result info. */
     
    5283        nic_address_t bssid;
    5384        char ssid[IEEE80211_MAX_SSID_LENGTH];
     85        uint8_t channel;
     86        ieee80211_security_t security;
    5487} ieee80211_scan_result_t;
    5588
    56 /** List of scan results info. */
     89/** Array of scan results info. */
    5790typedef struct {
    5891        uint8_t length;
Note: See TracChangeset for help on using the changeset viewer.