Lines Matching full:ssid
130 * wpa_driver_wext_get_ssid - Get SSID, SIOCGIWESSID
132 * @ssid: Buffer for the SSID; must be at least 32 bytes long
133 * Returns: SSID length on success, -1 on failure
135 int wpa_driver_wext_get_ssid(void *priv, u8 *ssid)
143 iwr.u.essid.pointer = (caddr_t) ssid;
153 /* Some drivers include nul termination in the SSID, so let's
157 if (ret > 0 && ssid[ret - 1] == '\0' &&
167 * wpa_driver_wext_set_ssid - Set SSID, SIOCSIWESSID
169 * @ssid: SSID
170 * @ssid_len: Length of SSID (0..32)
173 int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len)
188 os_memcpy(buf, ssid, ssid_len);
191 /* For historic reasons, set SSID length to include one extra
192 * character, C string nul termination, even though SSID is
195 * can thus end up missing the last octet of the SSID if the
906 * Unlock the driver's BSSID and force to a random SSID to clear any
998 * @param: Scan parameters (specific SSID to scan for (ProbeReq), etc.)
1007 const u8 *ssid = params->ssids[0].ssid;
1018 wpa_printf(MSG_DEBUG, "%s: too long SSID (%lu)",
1026 if (ssid && ssid_len) {
1031 os_memcpy(req.essid, ssid, ssid_len);
1120 u8 ssid[32];
1146 os_memcpy(res->ssid, custom, ssid_len);
1388 * Generate a fake SSID IE since the driver did not report
1393 os_memcpy(pos, data->ssid, data->ssid_len);
1869 u8 ssid[32];
1876 * SSID as an attempt to create a new ad-hoc network.
1896 * no need for the random SSID hack, but clear the
1897 * SSID.
1901 "SSID on disconnect");
1907 * Set a random SSID to make sure the driver will not be trying
1913 ssid[i] = rand() & 0xFF;
1914 if (wpa_driver_wext_set_ssid(drv, ssid, 32) < 0) {
1916 "SSID to disconnect");
2153 wpa_driver_wext_set_ssid(drv, params->ssid, params->ssid_len) < 0)
2159 wpa_driver_wext_set_ssid(drv, params->ssid, params->ssid_len) < 0)
2404 * Check that there is enough space needed for 1 more SSID, the
2412 params->ssids[i].ssid,
2416 os_memcpy(&buf[bp], params->ssids[i].ssid,