相关疑难解决方法(0)

带有单个 NIC 的 wifi AP

我正在尝试将我的电脑无线网卡用作 AP,同时通过同一张网卡连接到我的 wifi 网络,但我遇到了问题。我试图实现的是相当于 Windows 的虚拟 Wi-fi 技术。原则上,这很简单:

service network-manager stop
iw dev wlan0 del
iw phy phy0 interface add new0 type station
service network-manager start
iw phy phy0 interface add new1 type __ap
hostapd -B /etc/hostapd.conf
Run Code Online (Sandbox Code Playgroud)

具有适合 hostapd 的配置:

cat /etc/hostapd/hostapd.conf 
interface=new1
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
ssid=XXXX
country_code=us
hw_mode=g
channel=1
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
eap_server=0
wpa=2
wpa_passphrase=XXXX
wpa_pairwise=TKIP CCMP
rsn_pairwise=TKIP CCMP
Run Code Online (Sandbox Code Playgroud)

但是,驱动程序 nl80211 拒绝将虚拟 IF new1 置于 AP 模式。有趣的一点来了: iw list 的输出包含

Supported interface modes:
         * IBSS
         * managed …
Run Code Online (Sandbox Code Playgroud)

networking wireless-networking wireless-access-point

10
推荐指数
2
解决办法
5438
查看次数

RTL8188CUS AP 和客户端模式同时与 Linux 中的 hostapd?

我想弄清楚如何设置我的 RTL8188CUS Wifi 加密狗以同时在 AP 和客户端模式下运行。

我怎样才能在 Linux 中做到这一点?

hostapd运行良好,我记得不久前在某处阅读有关 RTL8188 的 AP+客户端模式,但我不记得在哪里。

附加信息

我在 ARM 的 Debian 4.7.2-5 上。Linux 内核 3.4.90+。

我发现以下可能有用且(我认为)相关的线程:

链接 1如何在 raspberry pi 上为接入点和客户端使用单个无线适配器? 链接 2在 Linux 中的单个接口上创建 WiFi 接入点

我尝试了第一个链接,没有成功。

更新

我已经设法开始iw list在 Debain 8 Jessie x64 上工作。

它输出以下内容:

software interface modes (can always be added):

    * AP/VLAN
    * monitor

interface combinations are not supported
Run Code Online (Sandbox Code Playgroud)

然而,根据 Realteks 最新驱动程序的发布说明,他们声明 RTL8188CUS 支持并发模式,例如STA+AP版本4.0.0_5967.20121201

这不与iw list国家的说法相矛盾吗? …

linux wireless-networking wireless-access-point wifi-configuration

6
推荐指数
1
解决办法
9488
查看次数