https://blog.csdn.net/subfate/article/details/51882322
这篇文章讲述的是在ubuntu14.04系统上使用WIFI功能5GHz频率的问题,问题本身不大,但基于笔者经验和认知,还是走了些弯路,这里记录一下解决过程,写点东西,留点回忆。
遇到问题
对于WIFI热点的创建,除了从未知到入门这一大坎外,其它的路途还是很顺利的。上峰要求的WIFI是5GHz,但作为技术要求,我必须要考虑2.4GHz和5GHz。首先在一台Ubuntu14.04系统上测试5GHz频率热点,一切正常。但换到另一台裁剪过的Ubuntu14.04上就有问题(正常的ubuntu体积比较大,而这台裁剪过的系统只有500MB)。
问题是,使用iw list查看,所有的5GHz的信道都不能使用,信息如下:
root@latelee:~# iw list
Wiphy phy0
Band 2:
Capabilities: 0x19e3
RX LDPC
HT20/HT40
Static SM Power Save
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT TX/RX MCS rate indexes supported: 0-15
Frequencies:
* 5180 MHz [36] (30.0 dBm) (passive scanning, no IBSS)
* 5200 MHz [40] (30.0 dBm) (passive scanning, no IBSS)
* 5220 MHz [44] (30.0 dBm) (passive scanning, no IBSS)
* 5240 MHz [48] (30.0 dBm) (passive scanning, no IBSS)
* 5260 MHz [52] (30.0 dBm) (passive scanning, no IBSS, radar detection)
* 5280 MHz [56] (30.0 dBm) (passive scanning, no IBSS, radar detection)
* 5300 MHz [60] (30.0 dBm) (passive scanning, no IBSS, radar detection)
* 5320 MHz [64] (30.0 dBm) (passive scanning, no IBSS, radar detection)
* 5500 MHz [100] (disabled)
* 5520 MHz [104] (disabled)
* 5540 MHz [108] (disabled)
* 5560 MHz [112] (disabled)
* 5580 MHz [116] (disabled)
* 5600 MHz [120] (disabled)
* 5620 MHz [124] (disabled)
* 5640 MHz [128] (disabled)
* 5660 MHz [132] (disabled)
* 5680 MHz [136] (disabled)
* 5700 MHz [140] (disabled)
* 5745 MHz [149] (30.0 dBm) (passive scanning, no IBSS)
* 5765 MHz [153] (30.0 dBm) (passive scanning, no IBSS)
* 5785 MHz [157] (30.0 dBm) (passive scanning, no IBSS)
* 5805 MHz [161] (30.0 dBm) (passive scanning, no IBSS)
* 5825 MHz [165] (30.0 dBm) (passive scanning, no IBSS)
从网上查到的信息,当信道后面有disabled或passive scanning字样时,这个信道是无法正常使用(于AP模式)的。从启动信息也可以看到有些信道是被禁止的,如下:
[ 10.921565] at