找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3208|回复: 4

openwrt 无线网卡 WLAN0 WLAN1 索引咨询

[复制链接]
发表于 2015-9-21 17:16 | 显示全部楼层 |阅读模式
本帖最后由 earthGavinLee 于 2015-9-21 17:19 编辑

我的路由是HG556a Ralink Wifi的硬件版本,在Openwrt Chaos Calmer, r46767下编译了固件。
现在出现一个问题,如果使用USB 无线网卡做无线中继,WLAN索引不正常,具体现象如下。

1、如果先不插USB无线网卡,启动设备,设备运行正常后,再插入USB无线网卡。Ralink WIFI 和 USB 无线网卡工作一切正常。iwconfig 显示 wlan0 wlan1 索引正常。

root@OpenWrt:/# iwconfig
eth0.1 no wireless extensions.
lo no wireless extensions.
wlan1 unassociated Mode:Auto Access Point: Not-Associated //无线WIFI 网卡
    RTS thrff Fragment thrff
    Encryption keyff
    Power Managementff
    Link Quality:0 Signal level:0 Noise level:0
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth0.0 no wireless extensions.
wlan0 IEEE 802.11bgn Mode:Master Tx-Power=20 dBm  //Ralink WIFI
    RTS thrff Fragment thrff
    Power Managementff
eth0 no wireless extensions.
br-lan no wireless extensions.
root@OpenWrt:/#

2、如果先插USB无线网卡,启动设备,设备运行正常后。Ralink WIFI 和 USB 无线网卡不工作。iwconfig 显示 wlan 索引不正常。

root@OpenWrt:/# iwconfig
eth0.1 no wireless extensions.
lo no wireless extensions.
eth0.0 no wireless extensions.
wlan0 unassociated Mode:Auto Access Point: Not-Associated //USB 无线网卡
    RTS thrff Fragment thrff
    Encryption keyff
    Power Managementff
    Link Quality:0 Signal level:0 Noise level:0
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
br-lan no wireless extensions.

3.咨询坛子里的大神,在那里修改源代码,能将WLAN索引的优先级 先识别 PCI 再识别 USB ?
 楼主| 发表于 2015-9-21 17:24 | 显示全部楼层
顶一下!!!!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-9-21 19:56 | 显示全部楼层
使用 udev 无效,
规则已经生效,从新启动后依然无法将 ralink wifi 自定到wlan0 ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-9-21 21:01 | 显示全部楼层
查询 ieee80211目录,usb的无线网卡总是优先pci 先行被定义。这个地方在那里修改呢?

root@OpenWrt:/sys/class/ieee80211# ls
phy0  phy1
root@OpenWrt:/sys/class/ieee80211# cd phy0/
root@OpenWrt:/sys/devices/platform/ehci-platform/usb1/1-2/1-2.2/1-2.2:1.0/ieee80211/phy0# ls
address_mask  device        input0        name          uevent
addresses     index         macaddress    subsystem
root@OpenWrt:/sys/devices/platform/ehci-platform/usb1/1-2/1-2.2/1-2.2:1.0/ieee80211/phy0# cd ..
root@OpenWrt:/sys/class/ieee80211# ls
phy0  phy1
root@OpenWrt:/sys/class/ieee80211# cd phy1/
root@OpenWrt:/sys/devices/pci0000:00/0000:00:01.0/ieee80211/phy1# ls
address_mask  device        macaddress    subsystem
addresses     index         name          uevent
root@OpenWrt:/sys/devices/pci0000:00/0000:00:01.0/ieee80211/phy1#
回复 支持 反对

使用道具 举报

发表于 2015-9-21 21:10 | 显示全部楼层
谢谢分享!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-28 20:09

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表