/AliOS-Things-master/components/ble_netconfig/ |
A D | blecfg_netmgr.c | 19 uint8_t ssid[LIMIT_WIFI_SSID]; member 25 static int32_t BleCfg_wifi_kv_save(char *ssid, char *passwd) in BleCfg_wifi_kv_save() argument 32 if ( ssid == NULL || strlen(ssid) >= LIMIT_WIFI_SSID in BleCfg_wifi_kv_save() 49 if ( strcmp(wifi_ssid, ssid) == 0 in BleCfg_wifi_kv_save() 56 ret = aos_kv_set("wifi_ssid", ssid, strlen(ssid)+1, 1); in BleCfg_wifi_kv_save() 71 static int32_t BleCfg_wifi_kv_load(char *ssid, char *passwd) in BleCfg_wifi_kv_load() argument 77 ret = aos_kv_get("wifi_ssid", ssid, &len); in BleCfg_wifi_kv_load() 96 BLECFG_STATE BleCfg_wifi_set(char *ssid, char *passwd) in BleCfg_wifi_set() argument 100 if ( strlen(ssid) + 1 >= sizeof(wifi_info->ssid) in BleCfg_wifi_set() 105 strncpy(wifi_info->ssid, ssid, sizeof(wifi_info->ssid)); in BleCfg_wifi_set() [all …]
|
A D | blecfg_main.c | 98 char *ap_buf, *ssid, *passwd, *pk, *dn, *ds; in BleCfg_cmd_parse() local 180 ssid = malloc(ssid_len + pwd_len + 2); in BleCfg_cmd_parse() 181 if ( ssid == NULL ) { 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() 194 ret = BleCfg_wifi_set(ssid, passwd); in BleCfg_cmd_parse() 203 free(ssid); in BleCfg_cmd_parse() 253 if ( ap_info[loop].ssid == NULL || ap_info[loop].ssid[0] == 0 ) { in BleCfg_cmd_parse() 272 if ( ap_info[loop].ssid == NULL || ap_info[loop].ssid[0] == 0 ) { in BleCfg_cmd_parse() [all …]
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/aplist/ |
A D | awss_aplist.c | 73 struct ap_info *zconfig_get_apinfo_by_ssid(uint8_t *ssid) in zconfig_get_apinfo_by_ssid() argument 78 if (!strcmp((char *)zconfig_aplist[i].ssid, (char *)ssid)) { in zconfig_get_apinfo_by_ssid() 165 if (!(ssid && bssid)) { in awss_save_apinfo() 193 if (!strncmp(zconfig_aplist[i].ssid, (char *)ssid, ZC_MAX_SSID_LEN) && in awss_save_apinfo() 217 strncpy((char *)&zconfig_aplist[i].ssid, (const char *)&ssid[0], in awss_save_apinfo() 267 ap_info = zconfig_get_apinfo_by_ssid(ssid); in awss_get_auth_info() 293 char ssid[ZC_MAX_SSID_LEN] = { 0 }; in aws_try_adjust_chan() local 304 strncpy(ssid, (const char *)ap->ssid, ZC_MAX_SSID_LEN - 1); in aws_try_adjust_chan() 307 if (strlen(ssid) == strlen(zc_default_ssid) && in aws_try_adjust_chan() 344 ret = ieee80211_get_ssid(mgmt_header, len, ssid); in awss_ieee80211_aplist_process() [all …]
|
/AliOS-Things-master/components/linkkit/wrappers/os/ |
A D | HAL_AWSS_rhino.c | 145 if (ssid != NULL) { in HAL_Awss_Open_Ap() 146 strncpy(config.ssid, ssid, HAL_MAX_SSID_LEN); in HAL_Awss_Open_Ap() 180 _IN_ char ssid[HAL_MAX_SSID_LEN], in HAL_Awss_Connect_Ap() 192 ret = aos_kv_set(WIFI_SSID_KV_KEY, ssid, strlen(ssid), 1); in HAL_Awss_Connect_Ap() 200 netmgr_comp_enable(ssid, passwd); in HAL_Awss_Connect_Ap() 240 int HAL_Wifi_Get_Ap_Info(char ssid[HAL_MAX_SSID_LEN], in HAL_Wifi_Get_Ap_Info() 244 if (ssid) { in HAL_Wifi_Get_Ap_Info() 246 aos_kv_get("wifi_ssid", ssid, &ssid_len); in HAL_Wifi_Get_Ap_Info() 251 aos_kv_get("wifi_psk", ssid, &psk_len); in HAL_Wifi_Get_Ap_Info() 296 if (!ssid || !password) { in netmgr_comp_enable() [all …]
|
/AliOS-Things-master/components/linkkit/wifi_provision/dev_ap/ |
A D | awss_dev_ap.c | 21 char ssid[PLATFORM_MAX_SSID_LEN + 1]; member 33 char ssid[33]; member 79 memcpy(config.ssid, ssid, sizeof(config.ssid) - 1); in awss_80211_frame_handler() 134 strncpy(ssid_out, config.ssid, strlen(config.ssid)); in try_get_real_ssid() 166 awss_trace("ssid:%s\n", ssid); in awss_dev_ap_setup() 327 if (is_str_asii(info->ssid) == 0 && in start_connect_ap() 362 char *ssid; in wifimgr_process_dev_ap_switchap_request() local 381 ssid = info->ssid; in wifimgr_process_dev_ap_switchap_request() 418 memcpy(ssid, str, str_len); in wifimgr_process_dev_ap_switchap_request() 428 memcpy(ssid, str, str_len); in wifimgr_process_dev_ap_switchap_request() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/ |
A D | wifi_simple_config.c | 503 rtw_memcpy(wifi->ssid.val, backup_sc_ctx->ssid, wifi->ssid.len); in sc_set_val1() 504 wifi->ssid.val[wifi->ssid.len] = 0; in sc_set_val1() 509 rtw_memcpy(wifi->ssid.val, backup_sc_ctx->ssid, wifi->ssid.len); in sc_set_val1() 510 wifi->ssid.val[wifi->ssid.len] = 0; in sc_set_val1() 543 rtw_memcpy(wifi->ssid.val, backup_sc_ctx->ssid, wifi->ssid.len); in get_connection_info_from_profile() 586 rtw_memcpy(wifi->ssid.val, backup_sc_ctx->ssid, wifi->ssid.len); in get_connection_info_from_profile() 587 wifi->ssid.val[wifi->ssid.len] = 0; in get_connection_info_from_profile() 595 rtw_memcpy(wifi->ssid.val, backup_sc_ctx->ssid, wifi->ssid.len); in get_connection_info_from_profile() 596 wifi->ssid.val[wifi->ssid.len] = 0; in get_connection_info_from_profile() 607 wifi->ssid.val[wifi->ssid.len] = 0; in get_connection_info_from_profile() [all …]
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/ |
A D | awss.c | 71 char ssid[PLATFORM_MAX_SSID_LEN + 1] = { 0 }; in awss_aha_connect_to_router() local 74 memset(ssid, 0, sizeof(ssid)); in awss_aha_connect_to_router() 75 HAL_Wifi_Get_Ap_Info(ssid, NULL, NULL); in awss_aha_connect_to_router() 76 if (HAL_Sys_Net_Is_Ready() && strlen(ssid) > 0 && in awss_aha_connect_to_router() 77 strcmp(ssid, DEFAULT_SSID)) { /* not AHA */ in awss_aha_connect_to_router() 104 char ssid[PLATFORM_MAX_SSID_LEN + 1] = { 0 }; in awss_start() local 113 HAL_Wifi_Get_Ap_Info(ssid, NULL, NULL); in awss_start() 114 if (strlen(ssid) > 0 && strcmp(ssid, DEFAULT_SSID)) { /* not AHA */ in awss_start()
|
A D | awss_main.c | 14 char ssid[OS_MAX_SSID_LEN + 1] = { 0 }, in __awss_start() local 31 ret = aws_get_ssid_passwd(&ssid[0], &passwd[0], &bssid[0], &token[0], NULL, in __awss_start() 54 if (awss_stop_connecting || strlen(ssid) == 0) { in __awss_start() 58 if (strcmp(ssid, DEFAULT_SSID) == 0) { in __awss_start() 69 ret = awss_connect(ssid, passwd, bssid, ETH_ALEN, in __awss_start() 75 awss_debug("awss connect ssid:%s success", ssid); in __awss_start() 76 printf("awss connect ssid:%s success\r\n", ssid); in __awss_start() 99 awss_debug("awss connect ssid:%s fail", ssid); in __awss_start()
|
/AliOS-Things-master/components/uvoice/test/ |
A D | test_swid.c | 29 char *ssid; in lisen_freq_result() local 45 ssid = result; in lisen_freq_result() 58 printf("ssid: %s, passwd: %s\n", ssid, passwd); in lisen_freq_result() 62 memcpy(config.ssid, ssid, strlen(ssid) + 1); in lisen_freq_result() 65 printf("connect to '%s'\n", config.ssid); in lisen_freq_result()
|
/AliOS-Things-master/components/amp_adapter/platform/aos/network/ |
A D | aos_wifi.c | 63 int aos_wifi_connect(const char *ssid, const char *passwd) in aos_wifi_connect() argument 75 strncpy(params.params.wifi_params.ssid, ssid, sizeof(params.params.wifi_params.ssid) - 1); in aos_wifi_connect() 112 memset(wifi_info->ssid, 0, sizeof(wifi_info->ssid)); in aos_get_wifi_info() 113 …strncpy(wifi_info->ssid, config.config.wifi_config.config[used_ap].ssid, sizeof(wifi_info->ssid) -… in aos_get_wifi_info()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/example/bt_config/ |
A D | bt_config_wifi.c | 110 int BC_req_connect_hdl(uint8_t *ssid, uint8_t *password, uint8_t *bssid, rtw_security_t security, B… in BC_req_connect_hdl() argument 123 ssid, password); in BC_req_connect_hdl() 130 wifi.ssid.len = strlen((char const*)ssid); in BC_req_connect_hdl() 131 memcpy(wifi.ssid.val, ssid, wifi.ssid.len); in BC_req_connect_hdl() 143 else if (wifi.ssid.len == 0) { in BC_req_connect_hdl() 163 …ret = wifi_connect_bssid(wifi.bssid.octet, (char*)wifi.ssid.val, wifi.security_type, (char*)wifi.p… in BC_req_connect_hdl() 164 6, wifi.ssid.len, wifi.password_len, wifi.key_id, NULL); in BC_req_connect_hdl() 166 ret = wifi_connect((char*)wifi.ssid.val, wifi.security_type, (char*)wifi.password, wifi.ssid.len, in BC_req_connect_hdl() 209 memcpy(SSID, setting.ssid, BC_MAX_SSID_LEN); in BC_req_status_hdl()
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/ |
A D | wifi_port.c | 225 char *ssid; in _find_ap_from_scan_buf() local 233 ssid = buf + plen + 14 ; in _find_ap_from_scan_buf() 272 …tworks_with_ssid(_find_ap_from_scan_buf, (void*)&wifi, scan_buflen, ssid, strlen(ssid)) != RTW_SUC… in _get_ap_security_mode() 277 if(strcmp(wifi.ssid, ssid) == 0){ in _get_ap_security_mode() 323 uint8_t ssid[MAX_SSID_SIZE + 1] = {0}; 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() 429 rtw_memcpy(ap_info->ssid, setting.ssid, strlen(setting.ssid)); in haas200_wifi_sta_get_link_status() 535 char *ssid, *mac, exchange = 0; in specified_scan_result_handler() local 558 ssid = buf + plen + 14 ; in specified_scan_result_handler() [all …]
|
A D | wifi_port_ref.c | 326 strcpy(init_config_ptr->ssid, config->ssid); in haas1000_wifi_connect() 395 bwifi_get_current_ssid(out_stat->ssid); in haas1000_wifi_sta_get_link_status() 444 memcpy(scan_ssid->ssid, in wifi_scan() 445 wifi_status.scan_req.ap_list[i].ssid, in wifi_scan() 446 sizeof(scan_ssid->ssid)); in wifi_scan() 493 memcpy(res->ssid, r->ssid, sizeof(res->ssid)); in wifi_scan() 677 const char *ssid, in start_ap() argument 691 if (bwifi_set_softap_config(ssid, 0, hide, sec, passwd)) { in start_ap() 692 printf("Softap %s config failed\n", ssid); in start_ap() 697 printf("Softap %s start failed\n", ssid); in start_ap() [all …]
|
/AliOS-Things-master/components/linkkit/wifi_provision/phone_ap/ |
A D | awss_wifimgr.c | 34 char ssid[PLATFORM_MAX_SSID_LEN * 2 + 1] = { 0 }, in wifimgr_process_switch_ap_request() local 67 memcpy(ssid, str, str_len); in wifimgr_process_switch_ap_request() 77 memcpy(ssid, str, str_len); in wifimgr_process_switch_ap_request() 78 utils_str_to_hex(ssid, str_len, decoded, OS_MAX_SSID_LEN); in wifimgr_process_switch_ap_request() 79 memcpy(ssid, (const char *)decoded, len); in wifimgr_process_switch_ap_request() 80 ssid[len] = '\0'; in wifimgr_process_switch_ap_request() 176 awss_debug("switch to ap: '%s'", ssid); in wifimgr_process_switch_ap_request() 194 aplist = zconfig_get_apinfo_by_ssid((uint8_t *)ssid); in wifimgr_process_switch_ap_request() 195 awss_debug("connect '%s'", ssid); in wifimgr_process_switch_ap_request() 206 if (0 != awss_connect(ssid, passwd, (uint8_t *)bssid, ETH_ALEN, in wifimgr_process_switch_ap_request() [all …]
|
/AliOS-Things-master/solutions/miniapp_agent_demo/miniapp/pages/netCfg/ |
A D | netCfg.js | 7 ssid: '', 156 if (this.data.ssid.length < 1) { 200 value: this.genNetConfigPacket(this.data.ssid, this.data.password), 203 console.log('写入数据成功!' + this.genNetConfigPacket(this.data.ssid, this.data.password)); 247 genNetConfigPacket(ssid, password) { 253 ret += ssid.length < 16 ? ('0' + (ssid.length).toString(16)) : ((ssid.length).toString(16)) 255 for (let i = 0; i < ssid.length; i++) { 256 …ret += ssid.charCodeAt(i) < 16 ? ('0' + ssid.charCodeAt(i).toString(16)) : ssid.charCodeAt(i).toSt… 270 ssid: e.detail.value 283 ssid: this.data.ssidList[event.detail.value] [all …]
|
/AliOS-Things-master/components/linkkit/wrappers/platform/os/ |
A D | HAL_AWSS_yoc.c | 116 int HAL_Awss_Open_Ap(const char *ssid, const char *passwd, int beacon_interval, in HAL_Awss_Open_Ap() argument 129 if (ssid != NULL) { in HAL_Awss_Open_Ap() 130 strncpy(config.ssid, ssid, HAL_MAX_SSID_LEN); in HAL_Awss_Open_Ap() 164 _IN_ char ssid[HAL_MAX_SSID_LEN], in HAL_Awss_Connect_Ap() 211 int HAL_Wifi_Get_Ap_Info(char ssid[HAL_MAX_SSID_LEN], in HAL_Wifi_Get_Ap_Info() 215 if (ssid) { in HAL_Wifi_Get_Ap_Info() 217 aos_kv_get("wifi_ssid", ssid, &ssid_len); in HAL_Wifi_Get_Ap_Info() 222 aos_kv_get("wifi_psk", ssid, &psk_len); in HAL_Wifi_Get_Ap_Info()
|
/AliOS-Things-master/components/py_engine/tests/wipy/wlan/ |
A D | wlan.py | 34 wifi = WLAN(0, mode=WLAN.AP, ssid="test-wlan", auth=(WLAN.WPA, "123456abc"), channel=7) 37 print(wifi.ssid() == "test-wlan") 47 if net.ssid == testconfig.wlan_ssid: 60 wifi.ssid("t-wlan") 61 print(wifi.ssid() == "t-wlan") 75 if net.ssid == testconfig.wlan_ssid: 105 wifi.init(WLAN.AP, ssid="www.wipy.io", auth=None, channel=5, antenna=WLAN.INT_ANT) 129 wifi.init(mode=WLAN.AP, ssid=None) 149 wifi.ssid(
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/ |
A D | bwifi_interface.h | 53 u8 ssid[32+1]; member 86 u8 ssid[32+1]; //null-terminated string member 236 int bwifi_find_saved_config_by_ssid(const char *ssid, struct bwifi_station_config *config); 297 int bwifi_connect_to_ssid(const char *ssid, const char *passwd, int8 wep_keyid, u8 hidden, u8 *bssi… 341 int bwifi_get_current_ssid(char *ssid); 389 int airkiss_start(uint8 * ssid, uint8 * pwd, uint8 * token); 403 int bwifi_set_softap_config(char *ssid, u8 channel, u8 hidden, BWIFI_SEC_TYPE_T security, char *pas… 464 int wpa_interface_del_config(u8 *ssid, u8 *passwd, int wep_keyid, u8 hidden, u8 *bssid); 467 int wpa_interface_nv_find_network_by_ssid(const char *ssid, struct bwifi_station_config *config); 475 int wpa_interface_get_current_ssid(char *ssid);
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/ |
A D | wifi_wps_config.c | 23 u8 ssid[32]; /**< SSID */ member 307 strcpy((char*)wifi->ssid.val, (char*)&dev_cred->ssid[0]); in wps_config_wifi_setting() 377 wifi->ssid.len, in wps_connect_to_AP_by_certificate() 575 strcpy(discovery_ssid, ssid); in update_discovered_ssids() 632 if(dev_cred[i].ssid[0] == 0) in start_discovery_phase() 756 uint8_t *ssid = pos + 14; in wps_scan_cred_ssid() local 858 if(!ssid) { in wps_start() 893 rtw_memcpy(target_ssid, ssid, strlen(ssid)); in wps_start() 917 if(ssid) in wps_start() 938 if(dev_cred[i].ssid[0] == 0) in wps_start() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/location/ |
A D | module_location.c | 50 wifi_info.rssi, strlen(wifi_info.ssid) > 0 ? wifi_info.ssid : "TPLink"); in native_location_access_wifi_info() 88 wifi_info->rssi, strlen(wifi_info->ssid) > 0 ? wifi_info->ssid : "TPLink"); in native_location_scaned_wifi_info() 96 wifi_info->rssi, strlen(wifi_info->ssid) > 0 ? wifi_info->ssid : "TPLink"); in native_location_scaned_wifi_info()
|
/AliOS-Things-master/components/amp/jslib/src/ |
A D | netmgr.js | 56 ssid: options.ssid, property in netMgr.connect.options 64 this.emit('disconnect', options.ssid); 67 this.emit('connect', options.ssid); 77 this.emit('disconnect', ssid);
|
/AliOS-Things-master/components/amp/libjs/lib/ |
A D | netmgr.js | 57 ssid: options.ssid, property in netMgr.connect.options 65 this.emit('disconnect', options.ssid); 68 this.emit('connect', options.ssid); 78 this.emit('disconnect', ssid);
|
/AliOS-Things-master/components/netmgr/src/ |
A D | netmgr_wifi.c | 1291 ssid = saved_ap_conf->config[i].ssid; in update_wifi_config() 1419 ssid = saved_ap_conf->config[i].ssid; in update_wifi_status() 2123 strncpy(type.ssid, ssid, sizeof(type.ssid) - 1); in wifi_start_soft_ap() 2159 strncpy(type.ssid, ssid, sizeof(type.ssid) - 1); in wifi_start_sta() 2189 if(!ssid || !ssid[0]) { in ssid_contain_chinese_check() 2297 char* ssid; in netmgr_wifi_connect() local 2330 ssid = wifi_params->ssid; in netmgr_wifi_connect() 2365 strncpy(saved_ap_conf->config[0].ssid, ssid, sizeof(saved_ap_conf->config[0].ssid) - 1); in netmgr_wifi_connect() 3046 if(strncmp(saved_ap_conf->config[i].ssid, ssid, strlen(ssid)) == 0) { in netmgr_wifi_del_config() 3111 strncpy(ap_list[i].ssid, ap_info[i].ssid, strlen(ap_info[i].ssid)); [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/hal/ |
A D | wifi_port.c | 313 const char *ssid, in start_ap() argument 326 if (bwifi_set_softap_config(ssid, 0, hide, sec, passwd)) { in start_ap() 327 printf("Softap %s config failed\n", ssid); in start_ap() 332 printf("Softap %s start failed\n", ssid); in start_ap() 336 printf("Softap %s start success!!\n", ssid); in start_ap() 374 strncpy(init_config_ptr->ssid, config->ssid, sizeof(init_config_ptr->ssid)-1); in haas1000_wifi_connect() 443 bwifi_get_current_ssid(out_stat->ssid); in haas1000_wifi_sta_get_link_status() 492 memcpy(scan_ssid->ssid, in wifi_scan() 493 wifi_status.scan_req.ap_list[i].ssid, in wifi_scan() 494 sizeof(scan_ssid->ssid)); in wifi_scan() [all …]
|
/AliOS-Things-master/components/py_engine/modules/network/ |
A D | modnetwork.h | 10 char ssid[NETWORK_SSID_MAX_LEN + 1]; member 16 char ssid[NETWORK_SSID_MAX_LEN + 1]; member 33 int network_qrscan_result_process(const char *result, char *ssid, char *passwd);
|