• Home
  • Raw
  • Download

Lines Matching refs:ssid

204 	struct wpa_ssid *ssid;  in wpa_config_read_network()  local
215 ssid = os_zalloc(sizeof(*ssid)); in wpa_config_read_network()
216 if (ssid == NULL) { in wpa_config_read_network()
220 ssid->id = id; in wpa_config_read_network()
222 wpa_config_set_network_defaults(ssid); in wpa_config_read_network()
252 if (wpa_config_set(ssid, (char *) name, (char *) data, 0) < 0) in wpa_config_read_network()
258 if (ssid->passphrase) { in wpa_config_read_network()
259 if (ssid->psk_set) { in wpa_config_read_network()
264 wpa_config_update_psk(ssid); in wpa_config_read_network()
267 if ((ssid->key_mgmt & WPA_KEY_MGMT_PSK) && !ssid->psk_set) { in wpa_config_read_network()
274 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_read_network()
275 !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) && in wpa_config_read_network()
276 !(ssid->pairwise_cipher & WPA_CIPHER_NONE)) { in wpa_config_read_network()
281 ssid->group_cipher &= ~WPA_CIPHER_CCMP; in wpa_config_read_network()
285 wpa_config_free_ssid(ssid); in wpa_config_read_network()
286 ssid = NULL; in wpa_config_read_network()
289 return ssid; in wpa_config_read_network()
296 struct wpa_ssid *ssid, *tail = NULL, *head = NULL; in wpa_config_read_networks() local
330 ssid = wpa_config_read_network(nhk, name, i); in wpa_config_read_networks()
331 if (ssid == NULL) { in wpa_config_read_networks()
338 head = tail = ssid; in wpa_config_read_networks()
340 tail->next = ssid; in wpa_config_read_networks()
341 tail = ssid; in wpa_config_read_networks()
343 if (wpa_config_add_prio_network(config, ssid)) { in wpa_config_read_networks()
353 config->ssid = head; in wpa_config_read_networks()
547 static void write_str(HKEY hk, const char *field, struct wpa_ssid *ssid) in write_str() argument
549 char *value = wpa_config_get(ssid, field); in write_str()
567 static void write_bssid(HKEY hk, struct wpa_ssid *ssid) in write_bssid() argument
569 char *value = wpa_config_get(ssid, "bssid"); in write_bssid()
577 static void write_psk(HKEY hk, struct wpa_ssid *ssid) in write_psk() argument
579 char *value = wpa_config_get(ssid, "psk"); in write_psk()
587 static void write_proto(HKEY hk, struct wpa_ssid *ssid) in write_proto() argument
591 if (ssid->proto == DEFAULT_PROTO) in write_proto()
594 value = wpa_config_get(ssid, "proto"); in write_proto()
603 static void write_key_mgmt(HKEY hk, struct wpa_ssid *ssid) in write_key_mgmt() argument
607 if (ssid->key_mgmt == DEFAULT_KEY_MGMT) in write_key_mgmt()
610 value = wpa_config_get(ssid, "key_mgmt"); in write_key_mgmt()
619 static void write_pairwise(HKEY hk, struct wpa_ssid *ssid) in write_pairwise() argument
623 if (ssid->pairwise_cipher == DEFAULT_PAIRWISE) in write_pairwise()
626 value = wpa_config_get(ssid, "pairwise"); in write_pairwise()
635 static void write_group(HKEY hk, struct wpa_ssid *ssid) in write_group() argument
639 if (ssid->group_cipher == DEFAULT_GROUP) in write_group()
642 value = wpa_config_get(ssid, "group"); in write_group()
651 static void write_auth_alg(HKEY hk, struct wpa_ssid *ssid) in write_auth_alg() argument
655 if (ssid->auth_alg == 0) in write_auth_alg()
658 value = wpa_config_get(ssid, "auth_alg"); in write_auth_alg()
668 static void write_eap(HKEY hk, struct wpa_ssid *ssid) in write_eap() argument
672 value = wpa_config_get(ssid, "eap"); in write_eap()
683 static void write_wep_key(HKEY hk, int idx, struct wpa_ssid *ssid) in write_wep_key() argument
688 value = wpa_config_get(ssid, field); in write_wep_key()
696 static int wpa_config_write_network(HKEY hk, struct wpa_ssid *ssid, int id) in wpa_config_write_network() argument
726 #define STR(t) write_str(netw, #t, ssid) in wpa_config_write_network()
727 #define INT(t) write_int(netw, #t, ssid->t, 0) in wpa_config_write_network()
728 #define INT_DEF(t, def) write_int(netw, #t, ssid->t, def) in wpa_config_write_network()
730 STR(ssid); in wpa_config_write_network()
732 write_bssid(netw, ssid); in wpa_config_write_network()
733 write_psk(netw, ssid); in wpa_config_write_network()
734 write_proto(netw, ssid); in wpa_config_write_network()
735 write_key_mgmt(netw, ssid); in wpa_config_write_network()
736 write_pairwise(netw, ssid); in wpa_config_write_network()
737 write_group(netw, ssid); in wpa_config_write_network()
738 write_auth_alg(netw, ssid); in wpa_config_write_network()
740 write_eap(netw, ssid); in wpa_config_write_network()
772 write_wep_key(netw, i, ssid); in wpa_config_write_network()
839 struct wpa_ssid *ssid; in wpa_config_write() local
866 for (ssid = config->ssid, id = 0; ssid; ssid = ssid->next, id++) { in wpa_config_write()
867 if (wpa_config_write_network(hk, ssid, id)) in wpa_config_write()