aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@qti.qualcomm.com>2014-01-06 13:06:13 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-14 15:24:33 (GMT)
commit3ed97271ba4e119c4413b2a77c64adbbb666a46f (patch)
treefcf7c674bd8d4c4a89dd870b3ec72b1eefb17a70 /wpa_supplicant
parenteed65aad1447f63ea14634da43153784754e383e (diff)
downloadhostap-3ed97271ba4e119c4413b2a77c64adbbb666a46f.zip
hostap-3ed97271ba4e119c4413b2a77c64adbbb666a46f.tar.gz
hostap-3ed97271ba4e119c4413b2a77c64adbbb666a46f.tar.bz2
TDLS: Pass peer's Supported channel and oper class info during sta_add
The information of the peer's supported channel and operating class is required for the driver to do TDLS off channel operations with a compatible peer. Pass this information to the driver when the peer station is getting added. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wpas_glue.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index 999d667..ad0895b 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -579,7 +579,9 @@ static int wpa_supplicant_tdls_peer_addset(
const u8 *supp_rates, size_t supp_rates_len,
const struct ieee80211_ht_capabilities *ht_capab,
const struct ieee80211_vht_capabilities *vht_capab,
- u8 qosinfo, const u8 *ext_capab, size_t ext_capab_len)
+ u8 qosinfo, const u8 *ext_capab, size_t ext_capab_len,
+ const u8 *supp_channels, size_t supp_channels_len,
+ const u8 *supp_oper_classes, size_t supp_oper_classes_len)
{
struct wpa_supplicant *wpa_s = ctx;
struct hostapd_sta_add_params params;
@@ -607,6 +609,10 @@ static int wpa_supplicant_tdls_peer_addset(
params.set = !add;
params.ext_capab = ext_capab;
params.ext_capab_len = ext_capab_len;
+ params.supp_channels = supp_channels;
+ params.supp_channels_len = supp_channels_len;
+ params.supp_oper_classes = supp_oper_classes;
+ params.supp_oper_classes_len = supp_oper_classes_len;
return wpa_drv_sta_add(wpa_s, &params);
}