Open unissoft-bj opened 9 years ago
RT5370 root@ihost:~# iw dev wlan1 interface add mon.wlan1 type monitor root@ihost:~# iw dev wlan1 interface add station.wlan1 type managed root@ihost:~# iw dev wlan1 interface add ap.wlan1 type ap You need to run a management daemon, e.g. hostapd, see http://wireless.kernel.org/en/users/Documentation/hostapd for more information on how to do that. root@ihost:~#
root@ihost:~# iwconfig
wlan0 unassociated Nickname:"WIFI@REALTEK"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
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
station.wlan1 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
sit0 no wireless extensions.
lo no wireless extensions.
eth0 no wireless extensions.
mon.wlan1 IEEE 802.11bgn Mode:Monitor Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
wlan1 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
rtl8188 root@ihost:~# iw dev wlan0 interface add ap.wlan0 type ap You need to run a management daemon, e.g. hostapd, see http://wireless.kernel.org/en/users/Documentation/hostapd for more information on how to do that.
root@ihost:~# iw dev wlan0 interface add monitor.wlan0 type monitor
root@ihost:~# iw dev wlan0 interface add station.wlan0 type managed command failed: No such device (-19)
root@ihost:~# iwconfig
wlan0 unassociated Nickname:"WIFI@REALTEK"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
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
station.wlan1 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
sit0 no wireless extensions.
lo no wireless extensions.
eth0 no wireless extensions.
mon.wlan1 IEEE 802.11bgn Mode:Monitor Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
monitor.wlan0 IEEE 802.11abg Mode:Monitor Tx-Power=12 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
wlan1 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
root@ihost:~#
rtl8188做hotspot,供手机接入;同时用rtl8188接入公司的wifi
Creating WiFi Access point on a single interface in Linux http://superuser.com/questions/615664/creating-wifi-access-point-on-a-single-interface-in-linux
iw command http://superuser.com/questions/592296/using-iw-to-add-a-virtual-wireless-interface-getting-the-error-no-such-device