Lines Matching refs:hdl

149     netmgr_hdl_t hdl;  member
190 static void wifi_indicate_event_handle(void* hdl, int event, void* arg);
275 wifi_indicate_event_handle((void *)msg.hdl, msg.event_id, msg.params); in wifi_recvmsg_handle()
316 msg.hdl = 0; in wifi_stat_chg_cb()
476 if(0 != ( ret = ioctl(g_wifi_conn_info->hdl, WIFI_DEV_CMD_SET_MAC, mac))) { in wifi_set_mac()
482 static int wifi_get_mac(netmgr_hdl_t hdl, uint8_t *mac) in wifi_get_mac() argument
487 if(0 != (ret = ioctl(hdl, WIFI_DEV_CMD_GET_MAC, mac))) { in wifi_get_mac()
498 if(0 != (ret = ioctl(g_wifi_conn_info->hdl, WIFI_DEV_CMD_STA_GET_LINK_STATUS, &out))) { in wifi_get_rssi()
559 if(0 != (ret = ioctl(conn->hdl, WIFI_DEV_CMD_NOTIFY_IP_STATE2DRV , &in))) { in tcpip_dhcpc_cb()
657 if(0 != netmgr_wifi_connect(conn->hdl, (netmgr_wifi_params_t*)&params)) { in reconnect_task_handle()
658 if(ioctl(conn->hdl, WIFI_DEV_CMD_CANCEL_CONNECT, NULL) != 0) { in reconnect_task_handle()
798 if(0 != (ret = ioctl(conn->hdl, WIFI_DEV_CMD_NOTIFY_IP_STATE2DRV , &in))) { in wifi_obtaining_ip()
908 if(0 != (ret = ioctl(conn->hdl, WIFI_DEV_CMD_DISCONNECT, NULL))) { in wifi_disconnected()
1230 if(0 != (ret = (ioctl(conn->hdl, WIFI_DEV_CMD_GET_CHANNEL, &channel)))) { in update_wifi_config()
1380 if(0 != (ret = (ioctl(conn->hdl, WIFI_DEV_CMD_GET_CHANNEL, &channel)))) { in update_wifi_status()
1396 wifi_get_mac(conn->hdl, mac); in update_wifi_status()
1714 static void wifi_indicate_event_handle(void* hdl, int wifi_event, void* arg) in wifi_indicate_event_handle() argument
1880 int netmgr_wifi_init(netmgr_hdl_t hdl) in netmgr_wifi_init() argument
1909 g_wifi_conn_info->hdl = hdl; in netmgr_wifi_init()
1984 void netmgr_wifi_deinit(netmgr_hdl_t hdl) in netmgr_wifi_deinit() argument
1994 if(0 != (ret = ioctl(hdl, WIFI_DEV_CMD_DISCONNECT, NULL))) { in netmgr_wifi_deinit()
2029 void* netmgr_wifi_get_netif(netmgr_hdl_t hdl) in netmgr_wifi_get_netif() argument
2083 if(0 != (ret = ioctl(conn->hdl, WIFI_DEV_CMD_START_SPECIFIED_SCAN, &scan_result))) in wifi_start_scan()
2086 if(0 != (ret = ioctl(conn->hdl, WIFI_DEV_CMD_START_SCAN, NULL))) { in wifi_start_scan()
2134 ret = ioctl(conn->hdl, WIFI_DEV_CMD_CONNECT, &type); in wifi_start_soft_ap()
2145 static int wifi_start_sta(netmgr_hdl_t hdl, netmgr_conn_t *conn, const char *ssid, in wifi_start_sta() argument
2173 ret = ioctl(hdl, WIFI_DEV_CMD_CONNECT, &type); in wifi_start_sta()
2287 int netmgr_wifi_connect(netmgr_hdl_t hdl, netmgr_wifi_params_t *params) in netmgr_wifi_connect() argument
2313 if(conn->hdl != hdl) { in netmgr_wifi_connect()
2314 NETMGR_WIFI_LOGE("%s:%d error: invliad hdl:%d\n", __func__, __LINE__, hdl); in netmgr_wifi_connect()
2419 if(0 != (ret = (ioctl(hdl, WIFI_DEV_CMD_GET_CHANNEL, &channel)))) { in netmgr_wifi_connect()
2545 ret = wifi_start_sta(hdl, conn, in netmgr_wifi_connect()
2553 ret = wifi_start_sta(hdl, conn, saved_ap_conf->config[i].gbk_ssid, in netmgr_wifi_connect()
2591 int netmgr_wifi_disconnect(netmgr_hdl_t hdl) in netmgr_wifi_disconnect() argument
2616 if(0 != (ret = ioctl(hdl, WIFI_DEV_CMD_DISCONNECT, NULL))) { in netmgr_wifi_disconnect()
2706 int netmgr_wifi_set_msg_cb(netmgr_hdl_t hdl, netmgr_msg_cb_t cb) in netmgr_wifi_set_msg_cb() argument
2761 int netmgr_wifi_del_msg_cb(netmgr_hdl_t hdl, netmgr_msg_cb_t cb) in netmgr_wifi_del_msg_cb() argument
2972 if (-1 != wifi_get_mac(conn->hdl, mac)) { in netmgr_wifi_get_ip_stat()
2991 int netmgr_wifi_save_config(netmgr_hdl_t hdl) in netmgr_wifi_save_config() argument
2997 int netmgr_wifi_get_config(netmgr_hdl_t hdl, netmgr_wifi_config_t* config) in netmgr_wifi_get_config() argument
3013 int netmgr_wifi_del_config(netmgr_hdl_t hdl, const char* ssid) in netmgr_wifi_del_config() argument
3102 if(0 != (ret = ioctl(g_wifi_conn_info->hdl, WIFI_DEV_CMD_START_SCAN, NULL))) {
3118 if(0 != (ret = ioctl(g_wifi_conn_info->hdl, WIFI_DEV_CMD_START_SPECIFIED_SCAN, &scan))) {
3120 if(0 != (ret = ioctl(g_wifi_conn_info->hdl, WIFI_DEV_CMD_START_SPECIFIED_SCAN, ap_list))) {
3211 if(ioctl(conn->hdl, WIFI_DEV_CMD_START_MONITOR, NULL) != 0) {
3221 if(ioctl(conn->hdl, WIFI_DEV_CMD_STOP_MONITOR, NULL) != 0) {
3231 if(ioctl(conn->hdl, WIFI_DEV_CMD_START_MGNT_MONITOR, NULL) != 0) {
3241 if(ioctl(conn->hdl, WIFI_DEV_CMD_STOP_MGNT_MONITOR, NULL) != 0) {
3247 int netmgr_wifi_set_channelist(netmgr_hdl_t hdl, int *channel_array, int channel_num) argument
3251 if (hdl == 0) {
3256 ret = ioctl(hdl, WIFI_DEV_CMD_SET_CHANNELLIST, &ch_list);
3264 int netmgr_wifi_get_channelist(netmgr_hdl_t hdl, int **channel_array, int *channel_num) argument
3268 if ((hdl == 0) || (channel_array == NULL) || (channel_num == NULL)) {
3271 ret = ioctl(hdl, WIFI_DEV_CMD_GET_CHANNELLIST, &ch_list);
3372 … if(ioctl(conn->hdl, WIFI_DEV_CMD_REGISTER_MGNT_MONITOR_CB, wifi_mgnt_monitor_data_cb) != 0) {
3376 if(ioctl(conn->hdl, WIFI_DEV_CMD_REGISTER_MGNT_MONITOR_CB, fn) != 0) {
3390 return ioctl(conn->hdl, WIFI_DEV_CMD_SEND_80211_RAW_FRAME, &frame);
3435 netmgr_wifi_connect(g_wifi_conn_info->hdl, (netmgr_wifi_params_t*) params);
3528 netmgr_wifi_disconnect(conn->hdl);
3546 if(-1 != wifi_get_mac(g_wifi_conn_info->hdl, mac)) {