Re: No AP mode operation with ap_scan=1 if no matching network is found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mo, 2016-07-11 at 12:21 +0200, Jörg Krause wrote:
> Hi,
> 
> i have an issue with AP scanning and selection. After power-up the
> device should scan for a known ssid and if it does not find it,
> initialize an new network in AP mode operation. This is well the
> behaviour as described for the 'ap_scan=1' config option.
> 
> This is my corresponding wpa_supplicant.conf:
> 
>     ctrl_interface=/var/run/wpa_supplicant
>     update_config=1
>     p2p_disabled=1
> 
>     network={
>             ssid="AP_MODE"
>             key_mgmt=NONE
>             mode=2
>             frequency=2462
>             disabled=1
>             id_str="ap"
>     }
> 
>     network={
>             ssid="HOME_NETWORK"
>             psk="xxxxxxxxxxx"
>     }
> 
> If the access point with the ssid "HOME_NETWORK" is not found, the
> device should go into AP mode operation, as far as I understand the
> 'ap_scan=1' config option. Unfortunately, it does not.
> 
> Running wpa_supplicant in debug mode I can see that the supplicant
> scans for the ssid "HOME_NETWORK" three times and always ends up with
> "No suitable network found". However, instead of starting to operate
> in
> AP mode, the supplicant initiates a sched_scan:
> 
>     No suitable network found
>     Beginning of SSID list
>     Add wildcard SSID to sched_scan
>     add to filter ssid: HOME_NETWORK
>     Starting sched scan: interval 10 (no timeout)
> 
> Did I miss something?

I figured out that wpa_supplicant does not go into AP mode operation
because the network is marked as "disabled".

This is because of the command "select_network" I switch to the network
I configured before.

So do I have to run "enable_network 0" (id=0 for sssid AP_MODE) every
time after running "select_network"?

Best regards
Jörg Krause

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux