diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-11-01 13:45:34 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-11-01 13:45:34 +0200 |
commit | 4aac554ce27e4e45af347275268a9f16fd80c750 (patch) | |
tree | e1ad36b705fed2f2708e78e5a70ac49112e5188d | |
parent | b6a55236ceddc5eb2d6f228c0eddfadbeb10341c (diff) | |
download | external_wpa_supplicant_8_ti-4aac554ce27e4e45af347275268a9f16fd80c750.zip external_wpa_supplicant_8_ti-4aac554ce27e4e45af347275268a9f16fd80c750.tar.gz external_wpa_supplicant_8_ti-4aac554ce27e4e45af347275268a9f16fd80c750.tar.bz2 |
driver_nl80211: Remove set_ssid from nl80211 driver
This is no longer required (and does not work with current
wireless-testing anymore).
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
-rw-r--r-- | hostapd/driver_nl80211.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/hostapd/driver_nl80211.c b/hostapd/driver_nl80211.c index 87d5837..dedc8e8 100644 --- a/hostapd/driver_nl80211.c +++ b/hostapd/driver_nl80211.c @@ -415,28 +415,6 @@ static int i802_set_rate_sets(void *priv, int *supp_rates, int *basic_rates, } -static int i802_set_ssid(const char *ifname, void *priv, const u8 *buf, - int len) -{ - struct i802_driver_data *drv = priv; - struct iwreq iwr; - - memset(&iwr, 0, sizeof(iwr)); - os_strlcpy(iwr.ifr_name, ifname, IFNAMSIZ); - iwr.u.essid.flags = 1; /* SSID active */ - iwr.u.essid.pointer = (caddr_t) buf; - iwr.u.essid.length = len; - - if (ioctl(drv->ioctl_sock, SIOCSIWESSID, &iwr) < 0) { - perror("ioctl[SIOCSIWESSID]"); - printf("len=%d\n", len); - return -1; - } - - return 0; -} - - static int i802_send_frame(void *priv, const void *data, size_t len, int encrypt, int flags) { @@ -2385,7 +2363,6 @@ const struct wpa_driver_ops wpa_driver_nl80211_ops = { .sta_deauth = i802_sta_deauth, .sta_disassoc = i802_sta_disassoc, .sta_remove = i802_sta_remove, - .set_ssid = i802_set_ssid, .send_mgmt_frame = i802_send_mgmt_frame, .sta_add2 = i802_sta_add2, .get_inact_sec = i802_get_inact_sec, |