Wifi no scan results

Raspbian Linux: No WiFi scan results from “iwlist wlan0 scan”

I have installed the latest version of Raspbian (via image) on my Raspberry Pi. The output of the uname -a command is:

Linux raspberrypi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l GNU/Linux 

When I plug in my Wifi adapter (a no-brand made-in-China Wifi adapter, model number SL-1504N) to a powered USB hub (brand name «plugable», tested and works quite well) that is connected to the Pi, the Wifi adapter is automatically recognized and the correct driver is loaded without any sort of configuration or fuss. The line that shows the Wifi adapter in the output of the lsusb command is:

Bus 001 Device 006: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter 
wlan0 unassociated Nickname:"rtl_wifi" Mode:Managed Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr: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 

My problem is: When I type iwlist wlan0 scan at the terminal prompt to see available wireless networks, I get:

  1. Start LXDE from the terminal prompt ( startx )
  2. Double-click the «WiFi Config» icon on the desktop (it is simply a shortcut/link to /usr/sbin/wpa_gui , a GUI frontend for wpa_supplicant )
  3. Click the «Scan» button, which causes a second window to pop up
  4. In the new window that popped up, click the «Scan» button

It takes about 5-10 seconds, but the scan works and displays the list of available Wifi networks. This is interesting because I don’t know what wpa_gui is doing differently from iwlist wlan0 scan that enables it to get scan results. What’s even more interesting is that if I now go back to the terminal prompt (either within LXDE or after closing LXDE and returning to the original terminal prompt) and type the same iwlist wlan0 scan command, I now get results.

Clearly, wpa_gui does something that I wasn’t doing at the terminal prompt.

My questions are:

  1. Does anyone know what the «Scan» capability in wpa_gui does differently from the iwlist wlan0 scan command?
  2. (Continuation of 1) How can I get this iwlist wlan0 scan to work without first doing the scan with wpa_gui ?
  3. In the iwconfig output shown above, what precisely is the meaning of «unassociated»?
Читайте также:  Car wifi display 5g

Note: For the purposes of getting this to work, I was using all default settings/files. The /etc/network/interfaces file is the default one from the Raspbian installation. If there is a utility I can run that would give useful information for troubleshooting, please let me know.

Источник

Raspbian Linux: нет результатов сканирования WiFi из «сканирования iwlist wlan0»

Я установил последнюю версию Raspbian (через образ) на мой Raspberry Pi. Вывод uname -a команды:

Linux raspberrypi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l GNU/Linux 

Когда я подключаю свой адаптер Wi-Fi (не производимый в Китае адаптер Wi-Fi, номер модели SL-1504N) к USB-концентратору с питанием (торговая марка «plugable», протестирована и работает достаточно хорошо), который подключается к Pi , адаптер Wi-Fi автоматически распознается, и правильный драйвер загружается без какой-либо конфигурации или суеты. Строка, которая показывает адаптер Wifi в выходных данных lsusb команды:

Bus 001 Device 006: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter 

wlan0 Сечение выхода iwconfig команды:

wlan0 unassociated Nickname:"rtl_wifi" Mode:Managed Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr: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 

Моя проблема: Когда я набираю iwlist wlan0 scan в терминале приглашение увидеть доступные беспроводные сети, я получаю:

Я пытался отключить интерфейс ( sudo ifdown wlan0 ) и восстановить его ( sudo ifup wlan0 ), а также различные решения, которые я нашел в Интернете, которые работали для других людей, но я все еще не мог заставить его работать. В качестве последнего усилия я сделал следующее:

  1. Запустите LXDE из командной строки терминала ( startx )
  2. Дважды щелкните значок «WiFi Config» на рабочем столе (это просто ярлык / ссылка на /usr/sbin/wpa_gui интерфейс GUI wpa_supplicant )
  3. Нажмите кнопку «Сканировать», после чего появится второе окно
  4. В появившемся окне нажмите кнопку «Сканировать».

Это занимает около 5-10 секунд, но сканирование работает и отображает список доступных сетей Wi-Fi. Это интересно, потому что я не знаю, что wpa_gui делает иначе iwlist wlan0 scan , чем позволяет получать результаты сканирования. Еще более интересно то, что если я сейчас вернусь к приглашению терминала (либо в LXDE, либо после закрытия LXDE и возврата к исходному приглашению терминала) и введу ту же iwlist wlan0 scan команду, я получу результаты.

Ясно, wpa_gui делает то, чего я не делал в терминале.

Мои вопросы:

  1. Кто-нибудь знает, чем wpa_gui отличается функция «Сканировать» от iwlist wlan0 scan команды?
  2. (Продолжение 1) Как я могу заставить это iwlist wlan0 scan работать без предварительного сканирования wpa_gui ?
  3. В iwconfig выводе, показанном выше, что именно означает «неассоциированный»?
Читайте также:  Настройка соединения wifi мост

Примечание: чтобы заставить это работать, я использовал все настройки / файлы по умолчанию. /etc/network/interfaces Файл по умолчанию один из Raspbian установки. Если я могу запустить утилиту, которая даст полезную информацию для устранения неполадок, пожалуйста, дайте мне знать.

У меня такая же проблема, т.е. iwlist wlan0 scan возврат «No scan results» . И мне интересно, если это потому, что мой Rpi2 недостаточно питание или нет? и это может объяснить, почему?

Вы пробовали sudo iwlist wlan0 scan . Для меня iwlist без sudo возврата возвращает «Нет результатов сканирования», но вместе с sudo ним возвращает полный список сетей.

Если вы все еще сталкиваетесь с ошибкой в ​​вашем Raspberry Pi, первое, что нужно проверить, — можете ли вы успешно подключить Raspberry Pi к сети WLAN с помощью этого wpa_supplicant инструмента.

Вы можете попытаться успешно подключиться, используя следующую команду:

sudo wpa_supplicant -iwlan0 -c /etc/wpa_supplicant.conf

Если эта команда выполнена успешно, и вы можете успешно подключиться, то все параметры конфигурации вашей сети, настроенные для вашего Raspberry Pi, просто работают нормально. В этом случае все, что вам нужно сделать, это открыть файл wpa_supplicant.conf и добавить следующие строки вверху этого файла:

ctrl_interface = / var / run / wpa_supplicant

После этого вы сможете успешно подключить Raspberry Pi к сети WiFi с помощью iwlist инструмента.

Источник

Arch Linux

EDIT AFTER FIX: I hopped into the IRC and spoke with someone who has the same setup I do. Evidently, the function button(used with F2) on the laptop has to be used to turn the hardware ON. So the light was on, but it wasn’t working. Soon as that happened, I got iwlist wlan0 scan to work.

Hello, folks! New to the forum and I’ve finally gotten to the point of posting because I’ve finally hit a brick wall. First off, I have to say I’m impressed with Arch. It’s given me MUCH less of a headache than Debian.

Here’s the deal. I’m military so I’m currently in a barracks building with networks everywhere. My Laptop is a Dell Inspiron E1705 with a Dell 1390 wirless card made by Broadcom. I’m running the B43 module with the firmcutter and the light on my laptop is on. I can toggle my wireless on and off with no problem. Here comes the snag, the card *seems* to be working but it refuses to see any networks. And there’s a lot of them here.

Doing an iwconfig gives me:

lo no wireless extensions. wmaster0 no wireless extensions. wlan0 IEEE 802.11g ESSID:"" Mode:Managed Frequency:2.412 Ghz Access Point: Not-Associated Tx-Power=27 dBm Retry min limit:7 RTS thr:off Fragment thr=2352 B Encryption key: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 eth0 no wirless extensions.

BTW. I’m having to hand jam the code in since I’m using my desktop to post all this. As you can see, the wlan0 interface is obviously up.

bash-3.2# iwlist wlan0 scan wlan0 No scan results

Now there are a ton of wireless APs around. So I have no idea why it’s giving me nothing. I tried to set a profile using netcfg2 to one of the open networks and it gave me Network unavailable. Any ideas?

Читайте также:  What is wifi bridge repeater

Last edited by Vipes (2008-06-06 21:39:14)

Main Box: AMD Athlon 64 X2 Dual Core 6400+ @ 3.2Ghz, 4GB Kingston HyperX DDR2 PC6400 @ 4-4-4-12, eVGA NVidia 8800GTX w/ 768MB DDR3, Arch64 and Windows 7 64-bit on Dual boot
Laptops: Sony VPCF1 Arch64/Win7, Dell Inspiron E1705 Arch32.

Источник

Wifi no scan results

When I plug in my Wifi adapter (ASUS USB-N10) to a powered USB hub that is connected to the Pi, the Wifi adapter is automatically recognized and the correct driver is loaded without any sort of configuration or fuss. The line that shows the Wifi adapter in the output of the lsusb command is:

Bus 001 Device 007: ID 0b05:1786 ASUSTek Computer, Inc. USB-N10 802.11n Network Adapter [Realtek RTL8188SU] 
wlan0 unassociated Nickname:"rtl_wifi" Mode:Managed Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr: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 

My problem is: When I type iwlist wlan0 scan at the terminal prompt to see available wireless networks, I get:

wpa_passphrase bducknuckal yati1606 network=

DougieLawson Posts: 42537 Joined: Sun Jun 16, 2013 11:19 pm Location: A small cave in deepest darkest Basingstoke, UK

Re: No Wifi scan results from “iwlist wlan0 scan

You need to add that network=<> block to the bottom of /etc/wpa_supplicant/wpa_supplicant.conf

It should end up looking like

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network=

Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors — are all on my foes list.

The use of crystal balls and mind reading is prohibited.

Источник

Оцените статью
Adblock
detector