Lines Matching full:ssid
124 * wpa_driver_wext_get_ssid - Get SSID, SIOCGIWESSID
126 * @ssid: Buffer for the SSID; must be at least 32 bytes long
127 * Returns: SSID length on success, -1 on failure
129 int wpa_driver_wext_get_ssid(void *priv, u8 *ssid)
137 iwr.u.essid.pointer = (caddr_t) ssid;
147 /* Some drivers include nul termination in the SSID, so let's
151 if (ret > 0 && ssid[ret - 1] == '\0' &&
161 * wpa_driver_wext_set_ssid - Set SSID, SIOCSIWESSID
163 * @ssid: SSID
164 * @ssid_len: Length of SSID (0..32)
167 int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len)
182 os_memcpy(buf, ssid, ssid_len);
185 /* For historic reasons, set SSID length to include one extra
186 * character, C string nul termination, even though SSID is
189 * can thus end up missing the last octet of the SSID if the
923 * Unlock the driver's BSSID and force to a random SSID to clear any
1015 * @param: Scan parameters (specific SSID to scan for (ProbeReq), etc.)
1024 const u8 *ssid = params->ssids[0].ssid;
1028 wpa_printf(MSG_DEBUG, "%s: too long SSID (%lu)",
1036 if (ssid && ssid_len) {
1041 os_memcpy(req.essid, ssid, ssid_len);
1127 u8 ssid[32];
1153 os_memcpy(res->ssid, custom, ssid_len);
1395 * Generate a fake SSID IE since the driver did not report
1400 os_memcpy(pos, data->ssid, data->ssid_len);
1873 u8 ssid[32];
1880 * SSID as an attempt to create a new ad-hoc network.
1900 * no need for the random SSID hack, but clear the
1901 * SSID.
1905 "SSID on disconnect");
1911 * Set a random SSID to make sure the driver will not be trying
1917 ssid[i] = rand() & 0xFF;
1918 if (wpa_driver_wext_set_ssid(drv, ssid, 32) < 0) {
1920 "SSID to disconnect");
2143 wpa_driver_wext_set_ssid(drv, params->ssid, params->ssid_len) < 0)
2149 wpa_driver_wext_set_ssid(drv, params->ssid, params->ssid_len) < 0)
2394 * Check that there is enough space needed for 1 more SSID, the
2402 params->ssids[i].ssid,
2406 os_memcpy(&buf[bp], params->ssids[i].ssid,