Lines Matching full:ssid
121 * wpa_driver_wext_get_ssid - Get SSID, SIOCGIWESSID
123 * @ssid: Buffer for the SSID; must be at least 32 bytes long
124 * Returns: SSID length on success, -1 on failure
126 int wpa_driver_wext_get_ssid(void *priv, u8 *ssid)
134 iwr.u.essid.pointer = (caddr_t) ssid;
145 /* Some drivers include nul termination in the SSID, so let's
149 if (ret > 0 && ssid[ret - 1] == '\0' &&
159 * wpa_driver_wext_set_ssid - Set SSID, SIOCSIWESSID
161 * @ssid: SSID
162 * @ssid_len: Length of SSID (0..32)
165 int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len)
180 os_memcpy(buf, ssid, ssid_len);
183 /* For historic reasons, set SSID length to include one extra
184 * character, C string nul termination, even though SSID is
187 * can thus end up missing the last octet of the SSID if the
1009 * Unlock the driver's BSSID and force to a random SSID to clear any
1088 * @param: Scan parameters (specific SSID to scan for (ProbeReq), etc.)
1097 const u8 *ssid = params->ssids[0].ssid;
1101 wpa_printf(MSG_DEBUG, "%s: too long SSID (%lu)",
1109 if (ssid && ssid_len) {
1114 os_memcpy(req.essid, ssid, ssid_len);
1202 u8 ssid[SSID_MAX_LEN];
1228 os_memcpy(res->ssid, custom, ssid_len);
1470 * Generate a fake SSID IE since the driver did not report
1475 os_memcpy(pos, data->ssid, data->ssid_len);
1955 u8 ssid[SSID_MAX_LEN];
1961 * SSID as an attempt to create a new ad-hoc network.
1981 * no need for the random SSID hack, but clear the
1982 * SSID.
1986 "SSID on disconnect");
1992 * Set a random SSID to make sure the driver will not be trying
1998 ssid[i] = rand() & 0xFF;
1999 if (wpa_driver_wext_set_ssid(drv, ssid, SSID_MAX_LEN) < 0) {
2001 "SSID to disconnect");
2136 "WEXT: Failed to clear SSID to stop pending cfg80211 association attempts (if any)");
2230 wpa_driver_wext_set_ssid(drv, params->ssid, params->ssid_len) < 0)
2236 wpa_driver_wext_set_ssid(drv, params->ssid, params->ssid_len) < 0)