linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arend van Spriel <arend@broadcom.com>
To: German <gentgerman@gmail.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: iw dev wlp1s0 scan hangs
Date: Thu, 12 Mar 2015 12:09:02 +0100	[thread overview]
Message-ID: <550173CE.8000708@broadcom.com> (raw)
In-Reply-To: <20150312045001.654f6b4706acdd9e9367caab@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3959 bytes --]

On 03/12/15 09:50, German wrote:
> On Thu, 12 Mar 2015 09:28:38 +0100
> Arend van Spriel<arend@broadcom.com>  wrote:
>
>> On 03/11/15 23:21, German wrote:
>>> On Wed, 11 Mar 2015 22:17:38 +0100
>>> Arend van Spriel<arend@broadcom.com>   wrote:
>>>
>>>> On 03/11/15 22:00, German wrote:
>>>>> On Wed, 11 Mar 2015 21:44:44 +0100
>>>>> Arend van Spriel<arend@broadcom.com>    wrote:
>>>>>
>>>>>> On 03/11/15 21:33, German wrote:
>>>>>>> On Wed, 11 Mar 2015 21:25:26 +0100
>>>>>>> Arend van Spriel<arend@broadcom.com>     wrote:
>>>>>>>
>>>>>>>> On 03/11/15 21:17, German wrote:
>>>>>>>>> Hi. When I try to run aformentioned command it hangs for about 20 secs and no output is returned. What's the problem might be? Thanks
>>>>>>>>
>>>>>>>> any more details you can share? What kernel version, what specific
>>>>>>>> device is wlp1s0, do you have any kernel logging.
>>>>>>>>
>>>>>>
>>>>>> When I wrote down the questions I was wondering how specifc I should be.
>>>>>>> Kernel 3.18.7-gentoo.
>>>>>>
>>>>>> ok
>>>>>>
>>>>>>> wlp1s0 is my network card.
>>>>>>
>>>>>> Sure. I meant what brand and model.
>>>>>>
>>>>>> Can you run following commands:
>>>>>> $ lspci
>>>>>> $ lsusb
>>>>>>
>>>>> realtek RTL8723BE PCIe Wireless Network Adapter
>>>>>
>>>>>>> As for kernel logging, I simply don't know if I have it. Thanks
>>>>>>
>>>>>> Ok. Can you run following command after aborting the hanging iw scan
>>>>>> command:
>>>>>>
>>>>>> $ dmesg
>>>>>
>>>>> Polling FW ready fail! Firmware is not ready to run.
>>>>>
>>>>> Ok, so I need some sort of firmware? That's what I thought. What is this and where can I find it in kernel when I compile it? Thanks
>>>>
>>>> Not familiar with Realtek equipment but it might be provided by the
>>>> linux-firmware package so:
>>>>
>>>> $ sudo emerge --ask linux-firmware
>>>>
>>>
>>> Thanks Arend. This did the trick. I can now scan networks and I found mine. But how I actually connect to my network? I guess it is encrypted, but I have wpa_supplicant installed.
>>
>> Gentoo does not seem to provide NetworkManager as a solution. I found
>> this page [1]. Maybe it helps.
>
> Thanks Arend for pointing me to this link. NetworkManager was proposed to me on gentoo mailing list as a way to control both wireless and wired interfaces. It pulled a bunch of dependencies, though I used -X flag in USE variable not to use X server. the compile took about an hour and after all this, my system became unstable. It doesn't at all feels right, it is clunky. For now I am building gentoo laptop in pure console mode, so from all my research, iw is the only CLI tool for wireless and I like the fact it doesn't need bunch of dependences. I already installed it and I like it, so would you be so kind to get me through a set up? Documentation seems confusing. Thanks

Well. iw is really for testing/debugging. Especially with WPA/RSN 
networks that do periodic rekeying you need wpa_supplicant. It will do 
the scanning on its own and establish connection and such.

You could also opt for using nmcli, but that might be what you tried 
already.

I am no gentoo expert, but let's try to get this working. I am following 
the wpa_supplicant section of the link I send earlier.

1. modify /etc/conf.d/net

Not sure if you only use wireless on the machine. Otherwise, you can 
copy the attach conf.net file:

$ sudo cp conf.net /etc/conf.d/net

2. install wpa_supplicant configuration

Edit attached wpa_supplicant.conf with your ssid and psk and copy it:

$ sudo cp wpa_supplicant.conf /etc/wpa_supplicant

3. restart networking

$ sudo /etc/init.d/net restart

Not sure if step 3. is entirely correct regarding the script name. I 
don't use Gentoo.

Regards,
Arend
>> Regards,
>> Arend
>>
>> [1]
>> http://wiki.gentoo.org/wiki/Handbook:Parts/Networking/Wireless#Wireless_tools
>>
>>>> Regards,
>>>> Arend
>>>>
>>>>>>
>>>>>> Regards,
>>>>>> Arend
>>>>>>
>>>>>>>> Regards,
>>>>>>>> Arend
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>


[-- Attachment #2: conf.net --]
[-- Type: text/plain, Size: 272 bytes --]

# Prefer wpa_supplicant over wireless-tools
modules="wpa_supplicant"

# It's important to tell wpa_supplicant which driver it should
# be using as it's not very good at guessing yet
wpa_supplicant_wlp1s0="-Dnl80211"

config_wlp1s0="dhcp"
dhcp_wlp1s0="release nontp nonis"

[-- Attachment #3: wpa_supplicant.conf --]
[-- Type: text/plain, Size: 411 bytes --]

# The below line not be changed otherwise wpa_supplicant refuses to work
ctrl_interface=/var/run/wpa_supplicant

# Ensure that only root can read the WPA configuration
ctrl_interface_group=0

# Let wpa_supplicant take care of scanning and AP selection
ap_scan=1

# Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers
network={
  ssid="simple"
  key_mgmt=WPA-PSK
  psk="your_passphrase"
}


  parent reply	other threads:[~2015-03-12 11:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11 20:17 iw dev wlp1s0 scan hangs German
2015-03-11 20:25 ` Arend van Spriel
     [not found]   ` <20150311163353.74922db84fc618b3b9039515@gmail.com>
2015-03-11 20:44     ` Arend van Spriel
     [not found]       ` <20150311170018.c2581ec2ddfb4589f5c8b154@gmail.com>
     [not found]         ` <5500B0F2.3010804@broadcom.com>
     [not found]           ` <20150311182146.bde39b79fad1e8cc61d6f4a0@gmail.com>
2015-03-12  8:28             ` Arend van Spriel
     [not found]               ` <20150312045001.654f6b4706acdd9e9367caab@gmail.com>
2015-03-12 11:09                 ` Arend van Spriel [this message]
2015-03-12 17:04                   ` German
2015-03-12 18:11                     ` Arend van Spriel
2015-03-12 18:35                       ` German
2015-03-12 15:33               ` Larry Finger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=550173CE.8000708@broadcom.com \
    --to=arend@broadcom.com \
    --cc=gentgerman@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).