diff options
author | Jouni Malinen <j@w1.fi> | 2008-08-25 10:06:40 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-08-25 10:06:40 +0300 |
commit | f2c290ccf4eea5da1d0251dcd0cf178497a336a5 (patch) | |
tree | bbbc91679d3906dfd9f3f365e589185b42bbc923 /hostapd | |
parent | 3d1aa251a3783305fe31b280bb570ce9153bd982 (diff) | |
download | external_wpa_supplicant_8_ti-f2c290ccf4eea5da1d0251dcd0cf178497a336a5.zip external_wpa_supplicant_8_ti-f2c290ccf4eea5da1d0251dcd0cf178497a336a5.tar.gz external_wpa_supplicant_8_ti-f2c290ccf4eea5da1d0251dcd0cf178497a336a5.tar.bz2 |
Switched driver_nl80211 to use the new sta_add2()
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/driver_nl80211.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/hostapd/driver_nl80211.c b/hostapd/driver_nl80211.c index 836ed42..58452fb 100644 --- a/hostapd/driver_nl80211.c +++ b/hostapd/driver_nl80211.c @@ -790,9 +790,8 @@ static int i802_send_eapol(void *priv, const u8 *addr, const u8 *data, } -static int i802_sta_add(const char *ifname, void *priv, const u8 *addr, - u16 aid, u16 capability, u8 *supp_rates, - size_t supp_rates_len, int flags, u16 listen_interval) +static int i802_sta_add2(const char *ifname, void *priv, + struct hostapd_sta_add_params *params) { struct i802_driver_data *drv = priv; struct nl_msg *msg; @@ -807,11 +806,12 @@ static int i802_sta_add(const char *ifname, void *priv, const u8 *addr, NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(drv->iface)); - NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, addr); - NLA_PUT_U16(msg, NL80211_ATTR_STA_AID, aid); - NLA_PUT(msg, NL80211_ATTR_STA_SUPPORTED_RATES, supp_rates_len, - supp_rates); - NLA_PUT_U16(msg, NL80211_ATTR_STA_LISTEN_INTERVAL, listen_interval); + NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, params->addr); + NLA_PUT_U16(msg, NL80211_ATTR_STA_AID, params->aid); + NLA_PUT(msg, NL80211_ATTR_STA_SUPPORTED_RATES, params->supp_rates_len, + params->supp_rates); + NLA_PUT_U16(msg, NL80211_ATTR_STA_LISTEN_INTERVAL, + params->listen_interval); ret = nl_send_auto_complete(drv->nl_handle, msg); if (ret < 0) @@ -2448,7 +2448,7 @@ const struct wpa_driver_ops wpa_driver_nl80211_ops = { .sta_remove = i802_sta_remove, .set_ssid = i802_set_ssid, .send_mgmt_frame = i802_send_mgmt_frame, - .sta_add = i802_sta_add, + .sta_add2 = i802_sta_add2, .get_inact_sec = i802_get_inact_sec, .sta_clear_stats = i802_sta_clear_stats, .set_freq = i802_set_freq, |