コード例 #1
0
ファイル: rt61apd.c プロジェクト: WiseMan787/ralink_sdk
static void Apd_cleanup(rtapd *rtapd)
{
    int i;

	if (rtapd->wlan_sock >= 0)
		close(rtapd->wlan_sock);	
	if (rtapd->ioctl_sock >= 0)
		close(rtapd->ioctl_sock);
	if (rtapd->eth_sock >= 0)
		close(rtapd->eth_sock);
    
	Radius_client_deinit(rtapd);

	Config_free(rtapd->conf);
	rtapd->conf = NULL;

	free(rtapd->config_fname);
}
static void Apd_cleanup(rtapd *rtapd)
{
    int i;

    for (i = 0; i < rtapd->conf->SsidNum; i++)
    {
    	if (rtapd->sock[i] >= 0)
    		close(rtapd->sock[i]);
    }
	if (rtapd->ioctl_sock >= 0)
		close(rtapd->ioctl_sock);
    
	Radius_client_deinit(rtapd);

	Config_free(rtapd->conf);
	rtapd->conf = NULL;

	free(rtapd->config_fname);
}
コード例 #3
0
static void Apd_cleanup(rtapd *rtapd)
{
    int i;

    for (i = 0; i < MAX_MBSSID_NUM; i++)
    {
        if (rtapd->wlan_sock[i] >= 0)
            close(rtapd->wlan_sock[i]);
        if (rtapd->eth_sock[i] >= 0)
            close(rtapd->eth_sock[i]);
    }
    if (rtapd->ioctl_sock >= 0)
        close(rtapd->ioctl_sock);

    Radius_client_deinit(rtapd);

    Config_free(rtapd->conf);
    rtapd->conf = NULL;

    free(rtapd->prefix_wlan_name);
}