Searched refs:ap_len (Results 1 – 1 of 1) sorted by relevance
/AliOS-Things-master/components/ble_netconfig/ |
A D | blecfg_main.c | 97 int32_t ret, loop, ap_len, ap_offset, payload_len; in BleCfg_cmd_parse() local 252 for (loop = 0, ap_len = 0; loop < AP_INFO_MAX; loop++) { in BleCfg_cmd_parse() 257 ap_len += strlen(ap_info[loop].ssid) + 2; //+2 for '()' in BleCfg_cmd_parse() 259 ap_len += 1; //str end in BleCfg_cmd_parse() 260 BLECFG_LOG_INFO("%s: len of SSIDs is %d\r\n", __func__, ap_len); in BleCfg_cmd_parse() 262 ap_buf = malloc(ap_len); in BleCfg_cmd_parse() 264 BLECFG_LOG_ERROR("%s: Not enough memory, %d\r\n", __func__, ap_len); in BleCfg_cmd_parse() 288 payload_len = ap_len - ap_offset > BLE_UP_MTU - 2 ? BLE_UP_MTU - 2 : ap_len - ap_offset; in BleCfg_cmd_parse()
|
Completed in 4 milliseconds