资源简介
这是MTK闭源驱动代码专用的iwinfo代码包
这是MTK闭源驱动代码专用的iwinfo代码包
这是MTK闭源驱动代码专用的iwinfo代码包
代码片段和文件信息
/*
* iwinfo - Wireless Information Library - Command line frontend
*
* Copyright (C) 2011 Jo-Philipp Wich
*
* The iwinfo library is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* The iwinfo library is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with the iwinfo library. If not see http://www.gnu.org/licenses/.
*/
#include
#include
#include “iwinfo.h“
static char * format_bssid(unsigned char *mac)
{
static char buf[18];
snprintf(buf sizeof(buf) “%02X:%02X:%02X:%02X:%02X:%02X“
mac[0] mac[1] mac[2] mac[3] mac[4] mac[5]);
return buf;
}
static char * format_ssid(char *ssid)
{
static char buf[IWINFO_ESSID_MAX_SIZE+3];
if (ssid && ssid[0])
snprintf(buf sizeof(buf) “\“%s\““ ssid);
else
snprintf(buf sizeof(buf) “unknown“);
return buf;
}
static char * format_channel(int ch)
{
static char buf[8];
if (ch <= 0)
snprintf(buf sizeof(buf) “unknown“);
else
snprintf(buf sizeof(buf) “%d“ ch);
return buf;
}
static char * format_frequency(int freq)
{
static char buf[10];
if (freq <= 0)
snprintf(buf sizeof(buf) “unknown“);
else
snprintf(buf sizeof(buf) “%.3f GHz“ ((float)freq / 1000.0));
return buf;
}
static char * format_txpower(int pwr)
{
static char buf[10];
if (pwr < 0)
snprintf(buf sizeof(buf) “unknown“);
else
snprintf(buf sizeof(buf) “%d dBm“ pwr);
return buf;
}
static char * format_quality(int qual)
{
static char buf[8];
if (qual < 0)
snprintf(buf sizeof(buf) “unknown“);
else
snprintf(buf sizeof(buf) “%d“ qual);
return buf;
}
static char * format_quality_max(int qmax)
{
static char buf[8];
if (qmax < 0)
snprintf(buf sizeof(buf) “unknown“);
else
snprintf(buf sizeof(buf) “%d“ qmax);
return buf;
}
static char * format_signal(int sig)
{
static char buf[10];
if (!sig)
snprintf(buf sizeof(buf) “unknown“);
else
snprintf(buf sizeof(buf) “%d dBm“ sig);
return buf;
}
static char * format_noise(int noise)
{
static char buf[10];
if (!noise)
snprintf(buf sizeof(buf) “unknown“);
else
snprintf(buf sizeof(buf) “%d dBm“ noise);
return buf;
}
static char * format_rate(int rate)
{
static char buf[14];
if (rate <= 0)
snprintf(buf sizeof(buf) “unknown“);
else
snprintf(buf sizeof(buf) “%d.%d MBit/s“
rate / 1000 (rate % 1000) / 100);
return buf;
}
static char * format_enc_ciphers(int ciphers)
{
static char str[128] = { 0 };
char *pos = str;
if (ciphers & IWINFO_CIPHER_WEP40)
pos += sprintf(pos “WEP-40 “);
if (ciphers & IWINFO_CIPHER_WEP104)
pos += sprintf(pos “WEP-104 “);
if
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-03-02 16:18 iwinfo_rt2860v2-master\
文件 3142 2017-03-02 16:18 iwinfo_rt2860v2-master\Makefile150501
文件 3258 2017-03-02 16:09 iwinfo_rt2860v2-master\Makefile_hc8903
文件 3048 2017-03-02 11:55 iwinfo_rt2860v2-master\Makefile_LEDE
目录 0 2016-03-09 18:16 iwinfo_rt2860v2-master\src\
目录 0 2016-03-09 18:16 iwinfo_rt2860v2-master\src\api\
文件 4416 2016-03-09 18:16 iwinfo_rt2860v2-master\src\api\broadcom.h
文件 5549 2016-03-09 18:16 iwinfo_rt2860v2-master\src\api\madwifi.h
文件 3310 2016-03-09 18:16 iwinfo_rt2860v2-master\src\api\mtk.h
文件 172656 2016-03-09 18:16 iwinfo_rt2860v2-master\src\api\nl80211.h
文件 43877 2016-03-09 18:16 iwinfo_rt2860v2-master\src\api\wext.h
文件 17987 2016-03-09 18:16 iwinfo_rt2860v2-master\src\COPYING
文件 3694 2016-03-09 18:16 iwinfo_rt2860v2-master\src\hardware.txt
目录 0 2016-03-09 18:16 iwinfo_rt2860v2-master\src\include\
目录 0 2016-03-09 18:16 iwinfo_rt2860v2-master\src\include\iwinfo\
文件 2132 2016-03-09 18:16 iwinfo_rt2860v2-master\src\include\iwinfo\lua.h
文件 1394 2016-03-09 18:16 iwinfo_rt2860v2-master\src\include\iwinfo\utils.h
文件 4668 2016-03-09 18:16 iwinfo_rt2860v2-master\src\include\iwinfo.h
文件 16991 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_cli.c
文件 10917 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_lib.c
文件 22413 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_lua.c
文件 27479 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_madwifi.c
文件 13102 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_mtk.c
文件 56883 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_nl80211.c
文件 1578 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_nl80211.h
文件 8198 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_utils.c
文件 11618 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_wext.c
文件 11148 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_wext.h
文件 13614 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_wext_scan.c
文件 15688 2016-03-09 18:16 iwinfo_rt2860v2-master\src\iwinfo_wl.c
文件 1407 2016-03-09 18:16 iwinfo_rt2860v2-master\src\Makefile
............此处省略0个文件信息
评论
共有 条评论