/AliOS-Things-master/components/linkkit/wifi_provision/p2p/ |
A D | awss_wps.c | 104 int ssid_len, passwd_len, ssid_truncated = 0; in get_ssid_passwd_from_w() local 127 ssid_len = in[0]; in get_ssid_passwd_from_w() 128 if (ssid_len & P2P_ENCRYPT_BIT_MASK) { in get_ssid_passwd_from_w() 130 ssid_len &= P2P_SSID_LEN_MASK; in get_ssid_passwd_from_w() 137 if (ssid_len > W_LEN - EXTRA_LEN || passwd_len < 0) { in get_ssid_passwd_from_w() 143 crc = os_get_unaligned_be16(in + 1 + ssid_len + passwd_len); in get_ssid_passwd_from_w() 145 passwd_check_utf8(in + 1 + ssid_len, &passwd_len); in get_ssid_passwd_from_w() 146 cal_crc = zconfig_checksum_v3(in, 1 + ssid_len + passwd_len); in get_ssid_passwd_from_w() 184 memcpy(tmp_ssid, in, ssid_len); in get_ssid_passwd_from_w() 185 in += ssid_len; in get_ssid_passwd_from_w() [all …]
|
/AliOS-Things-master/components/linkkit/wifi_provision/smartconfig/ |
A D | awss_smartconfig.c | 108 uint8_t len, flag, ssid_len, passwd_len; in zconfig_recv_completed() local 122 ssid_len = 0; in zconfig_recv_completed() 139 if (ssid_len > ZC_MAX_SSID_LEN - 1) { in zconfig_recv_completed() 140 ssid_len = ZC_MAX_SSID_LEN - 1; in zconfig_recv_completed() 157 for (i = 5; i < ssid_len + 5; i++) { in zconfig_recv_completed() 308 ssid_len = pbuf[0]; in zconfig_get_ssid_passwd() 315 tmp[ssid_len] = '\0'; in zconfig_get_ssid_passwd() 316 for (i = 0; i < ssid_len; i++) { in zconfig_get_ssid_passwd() 323 pbuf += ssid_len; /* ssid */ in zconfig_get_ssid_passwd() 351 ssid_len = strlen((const char *)ap->ssid) > ssid_len in zconfig_get_ssid_passwd() [all …]
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/ |
A D | awss_discover.c | 264 int ssid_len; in aws_discover_send() local 274 ssid_len = 3; in aws_discover_send() 275 strncpy(ssid + ssid_len, _product_key, IOTX_PRODUCT_KEY_LEN); in aws_discover_send() 276 ssid_len += strlen(_product_key); in aws_discover_send() 277 strcpy(ssid + ssid_len, "_"); in aws_discover_send() 278 ssid_len += 1; in aws_discover_send() 279 ssid_len += get_ability(ssid + ssid_len, ap.bssid); in aws_discover_send()
|
A D | zconfig_protocol.h | 202 uint8_t ssid_len; member
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/ |
A D | wifi_conf.h | 177 int ssid_len, 214 int ssid_len, 612 int ssid_len, 642 int ssid_len, 718 …_handler)(char*, int, char *, void *), void* user_data, int scan_buflen, char* ssid, int ssid_len); 732 …_handler)(char*, int, char *, void *), void* user_data, int scan_buflen, char* ssid, int ssid_len); 837 int ssid_len,
|
A D | wifi_conf.c | 540 int ssid_len, in wifi_connect() argument 623 join_result->network_info.ssid.len = ssid_len > 32 ? 32 : ssid_len; in wifi_connect() 750 int ssid_len, in wifi_connect_bssid() argument 781 join_result->network_info.ssid.len = ssid_len > 32 ? 32 : ssid_len; in wifi_connect_bssid() 1673 int ssid_len, in wifi_start_ap() argument 1680 if((ssid_len < 0)|| (ssid_len > 32)){ in wifi_start_ap() 1799 int ssid_len, in wifi_start_ap_with_hidden_ssid() argument 1806 if((ssid_len < 0)|| (ssid_len > 32)){ in wifi_start_ap_with_hidden_ssid() 2723 int ssid_len, in wifi_restart_ap() argument 2842 int ssid_len; member [all …]
|
A D | wifi_simple_config.c | 432 u8 len, ssid_len, security_mode; in SC_softAP_find_ap_from_scan_buf() local 440 ssid_len = len - 14; in SC_softAP_find_ap_from_scan_buf() 442 if((ssid_len == strlen(target_ssid)) in SC_softAP_find_ap_from_scan_buf() 443 && (!memcmp(ssid, target_ssid, ssid_len))) in SC_softAP_find_ap_from_scan_buf() 669 int ssid_len; member 712 int ssid_len = 0 ; in SC_parse_scan_result_and_connect() local 741 if (ssid_len == wifi->ssid.len) { in SC_parse_scan_result_and_connect() 845 int ssid_len = wifi->ssid.len; in SC_connect_to_candidate_AP() local 860 if(ssid && ssid_len > 0 && ssid_len <= 32){ in SC_connect_to_candidate_AP() 861 memcpy(scan_buf.buf, &ssid_len, sizeof(int)); in SC_connect_to_candidate_AP() [all …]
|
A D | wifi_util.h | 30 int wext_set_ssid(const char *ifname, const __u8 *ssid, __u16 ssid_len); 49 int wext_set_ap_ssid(const char *ifname, const __u8 *ssid, __u16 ssid_len);
|
A D | wifi_util.c | 44 int wext_set_ssid(const char *ifname, const __u8 *ssid, __u16 ssid_len) in wext_set_ssid() argument 51 iwr.u.essid.length = ssid_len; in wext_set_ssid() 52 iwr.u.essid.flags = (ssid_len != 0); in wext_set_ssid() 836 int wext_set_ap_ssid(const char *ifname, const __u8 *ssid, __u16 ssid_len) in wext_set_ap_ssid() argument 841 if(ssid_len > 32){ in wext_set_ap_ssid() 848 iwr.u.essid.length = ssid_len; in wext_set_ap_ssid() 849 iwr.u.essid.flags = (ssid_len != 0); in wext_set_ap_ssid()
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/ |
A D | wifi_port.c | 224 u8 len, ssid_len, security_mode; in _find_ap_from_scan_buf() local 232 ssid_len = len - 14; in _find_ap_from_scan_buf() 234 if((ssid_len == strlen(target_ssid)) in _find_ap_from_scan_buf() 235 && (!memcmp(ssid, target_ssid, ssid_len))) in _find_ap_from_scan_buf() 325 uint32_t ssid_len, passwd_len; in haas200_wifi_connect() local 341 ssid_len = strlen(config->ssid); in haas200_wifi_connect() 344 rtw_memcpy(ssid, config->ssid, ssid_len); in haas200_wifi_connect() 534 int len, rssi, ssid_len, security_mode, i; in specified_scan_result_handler() local 557 ssid_len = len - 14; in specified_scan_result_handler() 560 if((ssid_len == strlen(target_ssid)) in specified_scan_result_handler() [all …]
|
/AliOS-Things-master/components/ble_netconfig/ |
A D | blecfg_main.c | 95 int8_t ssid_len, pwd_len; in BleCfg_cmd_parse() local 177 ssid_len = cmd_merge[2]; in BleCfg_cmd_parse() 180 ssid = malloc(ssid_len + pwd_len + 2); in BleCfg_cmd_parse() 186 passwd = ssid + ssid_len + 1; in BleCfg_cmd_parse() 188 memcpy(ssid, cmd_merge + 4, ssid_len); in BleCfg_cmd_parse() 189 ssid[ssid_len] = 0; in BleCfg_cmd_parse() 191 memcpy(passwd, cmd_merge + 4 + ssid_len, pwd_len); in BleCfg_cmd_parse()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/ |
A D | bwifi_event.h | 36 u8 ssid_len; /**< SSID length of the connecting AP */ member 43 u8 ssid_len; /**< SSID length of connected AP */ member 50 u8 ssid_len; /**< SSID length of disconnected AP */ member
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/ |
A D | wifi_interactive_mode.c | 469 int ssid_len; in cmd_wifi_connect() local 502 ssid_len = strlen((const char *)argv[1]); in cmd_wifi_connect() 509 ssid_len = strlen((const char *)argv[1]); in cmd_wifi_connect() 516 ssid_len = strlen((const char *)argv[1]); in cmd_wifi_connect() 533 ssid_len, in cmd_wifi_connect() 569 int ssid_len = 0; in cmd_wifi_connect_bssid() local 605 if((ssid_len <= 0) || (ssid_len > 32)) { in cmd_wifi_connect_bssid() 651 ssid_len, in cmd_wifi_connect_bssid() 918 int ssid_len = 0; in cmd_wifi_scan_with_ssid() local 924 if((ssid_len <= 0) || (ssid_len > 32)) { in cmd_wifi_scan_with_ssid() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/ |
A D | wifi_wps_config.c | 24 size_t ssid_len; /**< Length of SSID */ member 309 wifi->ssid.len = dev_cred->ssid_len; in wps_config_wifi_setting() 637 if (dev_cred[0].ssid[0] != 0 && dev_cred[0].ssid_len <= 32) { in start_discovery_phase() 747 *((int *) scan_buf.buf) = dev_cred->ssid_len; in wps_scan_cred_ssid() 748 memcpy(scan_buf.buf + sizeof(int), dev_cred->ssid, dev_cred->ssid_len); in wps_scan_cred_ssid() 755 uint8_t ssid_len = len - 14; in wps_scan_cred_ssid() local 763 …if(((ssid_len == dev_cred->ssid_len) && (memcmp(ssid, dev_cred->ssid, dev_cred->ssid_len) == 0)) || in wps_scan_cred_ssid() 764 …((ssid_len_p2p == dev_cred->ssid_len) && (memcmp(ssid_p2p, dev_cred->ssid, dev_cred->ssid_len) == … in wps_scan_cred_ssid() 952 if(dev_cred[cur_index].ssid_len == 0) in wps_start() 986 if (dev_cred[select_index].ssid[0] != 0 && dev_cred[select_index].ssid_len <= 32) { in wps_start()
|
/AliOS-Things-master/components/linkkit/wifi_provision/mcast_smartconfig/ |
A D | mcast_smartconfig.c | 88 mcast_smartconfig_data.ssid_len); in set_zc_ssid() 168 mcast_smartconfig_data.ssid_len = mcast_smartconfig_data.data[offset]; in parse_result() 169 awss_debug("mcast: ssid_len is %d\n", mcast_smartconfig_data.ssid_len); in parse_result() 172 awss_debug("mcast: ssid is %.*s\n", mcast_smartconfig_data.ssid_len, in parse_result() 174 offset += mcast_smartconfig_data.ssid_len; in parse_result()
|
/AliOS-Things-master/components/linkkit/wrappers/platform/os/ |
A D | HAL_AWSS_yoc.c | 216 int ssid_len; in HAL_Wifi_Get_Ap_Info() local 217 aos_kv_get("wifi_ssid", ssid, &ssid_len); in HAL_Wifi_Get_Ap_Info()
|
/AliOS-Things-master/components/linkkit/wifi_provision/zero_config/ |
A D | awss_registrar.c | 1043 int ssid_len, passwd_len; in registrar_raw_frame_init() local 1046 ssid_len = strlen(ssid); in registrar_raw_frame_init() 1047 if (ssid_len > OS_MAX_SSID_LEN - 1) { in registrar_raw_frame_init() 1048 ssid_len = OS_MAX_SSID_LEN - 1; in registrar_raw_frame_init() 1056 ie_len = ENROLLEE_SIGN_SIZE + ssid_len + passwd_len + REGISTRAR_IE_FIX_LEN; in registrar_raw_frame_init() 1081 registrar_frame[len++] = ssid_len; in registrar_raw_frame_init() 1082 memcpy(®istrar_frame[len], ssid, ssid_len); in registrar_raw_frame_init() 1083 len += ssid_len; in registrar_raw_frame_init()
|
A D | awss_enrollee.h | 78 uint8_t ssid_len; /* AP's SSID length */ member
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/ieee80211/ |
A D | zconfig_ieee80211.c | 333 uint8_t ssid_len = ptr[1]; in ieee80211_get_ssid() local 334 if (ssid_len <= 32) { /* ssid 32 octets at most */ in ieee80211_get_ssid() 335 memcpy(ssid, ptr + 2, ssid_len); /* eating EID & len */ in ieee80211_get_ssid() 336 ssid[ssid_len] = '\0'; in ieee80211_get_ssid()
|
/AliOS-Things-master/components/linkkit/wrappers/os/ |
A D | HAL_AWSS_rhino.c | 245 int ssid_len; in HAL_Wifi_Get_Ap_Info() local 246 aos_kv_get("wifi_ssid", ssid, &ssid_len); in HAL_Wifi_Get_Ap_Info()
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | network_cyw43.c | 151 mp_obj_new_bytes(res->ssid, res->ssid_len), in network_cyw43_scan_cb() 180 opts.ssid_len = 0; in network_cyw43_scan() 184 opts.ssid_len = MIN(ssid.len, sizeof(opts.ssid)); in network_cyw43_scan() 185 memcpy(opts.ssid, ssid.buf, opts.ssid_len); in network_cyw43_scan()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/drivers/wlan/realtek/include/ |
A D | wifi_structures.h | 153 unsigned char ssid_len; member
|
/AliOS-Things-master/components/py_engine/modules/network/ |
A D | modnetwork.c | 448 int ssid_len = x ? x - wifi_ap_records[i].ssid in haas_wlan_scan() local 450 t->items[0] = mp_obj_new_bytes(wifi_ap_records[i].ssid, ssid_len); in haas_wlan_scan()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/src/utils/ |
A D | common.h | 466 const char * wpa_ssid_txt(const u8 *ssid, size_t ssid_len);
|