diff options
author | Arik Nemtsov <arik@wizery.com> | 2011-10-23 14:02:57 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-10-23 22:19:35 +0300 |
commit | 45b722f150e0ed8bd48390c605d8fa780a2c033a (patch) | |
tree | 02fd62e8e6ab4e705d8d6a7906ddb3c0bf04fb17 /src/rsn_supp/wpa_i.h | |
parent | 979bcccf64cde20eb588899944f4e412c5f9d170 (diff) | |
download | external_wpa_supplicant_8_ti-45b722f150e0ed8bd48390c605d8fa780a2c033a.zip external_wpa_supplicant_8_ti-45b722f150e0ed8bd48390c605d8fa780a2c033a.tar.gz external_wpa_supplicant_8_ti-45b722f150e0ed8bd48390c605d8fa780a2c033a.tar.bz2 |
TDLS: Add peer as a STA during link setup
Before commencing setup, add a new STA entry to the driver representing
the peer. Later during setup, update the STA entry using information
received from the peer.
Extend sta_add() callback for adding/modifying a TDLS peer entry and
connect it to the TDLS state machine. Implement this callback for the
nl80211 driver and send peer information to kernel.
Mark TDLS peer entries with a new flag and translate it to a
corresponding nl80211 flag in the nl80211 driver.
In addition, correct TDLS related documentation in the wpa_driver_ops
structure.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Cc: Kalyan C Gaddam <chakkal@iit.edu>
Diffstat (limited to 'src/rsn_supp/wpa_i.h')
-rw-r--r-- | src/rsn_supp/wpa_i.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rsn_supp/wpa_i.h b/src/rsn_supp/wpa_i.h index 67c3390..39124c4 100644 --- a/src/rsn_supp/wpa_i.h +++ b/src/rsn_supp/wpa_i.h @@ -291,6 +291,18 @@ static inline int wpa_sm_tdls_oper(struct wpa_sm *sm, int oper, return sm->ctx->tdls_oper(sm->ctx->ctx, oper, peer); return -1; } + +static inline int +wpa_sm_tdls_peer_addset(struct wpa_sm *sm, const u8 *addr, int add, + u16 capability, const u8 *supp_rates, + size_t supp_rates_len) +{ + if (sm->ctx->tdls_peer_addset) + return sm->ctx->tdls_peer_addset(sm->ctx->ctx, addr, add, + capability, supp_rates, + supp_rates_len); + return -1; +} #endif /* CONFIG_TDLS */ void wpa_eapol_key_send(struct wpa_sm *sm, const u8 *kck, |