Re: NetworkManager WiFi AP Mode



Ok so I recompiled WPA_S with CONFIG_AP=y but same results:

 NetworkManager --debug &
[1] 2917
root beaglebone:~#
(NetworkManager:2917): NetworkManager-WARNING **: <warn>  glib-version: cannot handle SIGUSR1 and SIGUSR2 signals. Consider upgrading glib to 2.36.0 or newer
NetworkManager[2917]: <info>  NetworkManager (version 1.0.10) is starting...
NetworkManager[2917]: <info>  Read config: /etc/NetworkManager/NetworkManager.conf
NetworkManager[2917]: <info>  init!
NetworkManager[2917]: <info>  update_system_hostname
NetworkManager[2917]: <info>        interface-parser: parsing file /etc/network/interfaces
NetworkManager[2917]: <info>        interface-parser: finished parsing file /etc/network/interfaces
NetworkManager[2917]: <info>  guessed connection type (eth0) = 802-3-ethernet
NetworkManager[2917]: <info>  update_connection_setting_from_if_block: name:eth0, type:802-3-ethernet, id:Ifupdown (eth0), uuid: 681b428f-beaf-8932-dce4-687ed5bae28e
NetworkManager[2917]: <info>  adding eth0 to connections
NetworkManager[2917]: <info>  adding iface eth0 to eni_ifaces
NetworkManager[2917]: <info>  autoconnect
NetworkManager[2917]: <info>  management mode: unmanaged
NetworkManager[2917]: <info>  devices added (path: /sys/devices/ocp.2/481cc000.d_can/net/can0, iface: can0)
NetworkManager[2917]: <info>  device added (path: /sys/devices/ocp.2/481cc000.d_can/net/can0, iface: can0): no ifupdown configuration found.
NetworkManager[2917]: <info>  devices added (path: /sys/devices/ocp.2/481d0000.d_can/net/can1, iface: can1)
NetworkManager[2917]: <info>  device added (path: /sys/devices/ocp.2/481d0000.d_can/net/can1, iface: can1): no ifupdown configuration found.
NetworkManager[2917]: <info>  devices added (path: /sys/devices/ocp.2/4a100000.ethernet/net/eth0, iface: eth0)
NetworkManager[2917]: <info>  locking wired connection setting
NetworkManager[2917]: <info>  devices added (path: /sys/devices/virtual/net/lo, iface: lo)
NetworkManager[2917]: <info>  device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
NetworkManager[2917]: <info>  end _init.
NetworkManager[2917]: <info>  Loaded settings plugin ifupdown: (C) 2008 Canonical Ltd.  To report bugs please use the NetworkManager mailing list. (/usr/lib/NetworkManager/libnm-settings-plugin-ifupdown.so)
NetworkManager[2917]: <info>  Loaded settings plugin keyfile: (c) 2007 - 2015 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
NetworkManager[2917]: <info>  (1416752) ... get_connections.
NetworkManager[2917]: <info>  (1416752) ... get_connections (managed=false): return empty list.
NetworkManager[2917]: <info>  keyfile: new connection /etc/NetworkManager/system-connections/Hotspot (3e13073d-6d7a-440d-ab2b-4f42c9fdacaf,"Hotspot")
NetworkManager[2917]: <info>  get unmanaged devices count: 1
NetworkManager[2917]: <info>  monitoring kernel firmware directory '/lib/firmware'.
NetworkManager[2917]: <info>  Loaded device plugin: NMVxlanFactory (internal)
NetworkManager[2917]: <info>  Loaded device plugin: NMVlanFactory (internal)
NetworkManager[2917]: <info>  Loaded device plugin: NMVethFactory (internal)
NetworkManager[2917]: <info>  Loaded device plugin: NMTunFactory (internal)
NetworkManager[2917]: <info>  Loaded device plugin: NMMacvlanFactory (internal)
NetworkManager[2917]: <info>  Loaded device plugin: NMInfinibandFactory (internal)
NetworkManager[2917]: <info>  Loaded device plugin: NMGreFactory (internal)
NetworkManager[2917]: <info>  Loaded device plugin: NMEthernetFactory (internal)
NetworkManager[2917]: <info>  Loaded device plugin: NMBridgeFactory (internal)
NetworkManager[2917]: <info>  Loaded device plugin: NMBondFactory (internal)
NetworkManager[2917]: <info>  Loaded device plugin: NMWifiFactory (/usr/lib/NetworkManager/libnm-device-plugin-wifi.so)
NetworkManager[2917]: <warn>  (/libnm-device-plugin-bluetooth.so): failed to load plugin: /usr/lib/NetworkManager/libnm-device-plugin-bluetooth.so: undefined symbol: g_clear_pointer
NetworkManager[2917]: <info>  Loaded device plugin: NMWwanFactory (/usr/lib/NetworkManager/libnm-device-plugin-wwan.so)
NetworkManager[2917]: <info>  Loaded device plugin: NMAtmManager (/usr/lib/NetworkManager/libnm-device-plugin-adsl.so)
NetworkManager[2917]: <info>  WiFi enabled by radio killswitch; enabled by state file
NetworkManager[2917]: <info>  WWAN enabled by radio killswitch; enabled by state file
NetworkManager[2917]: <info>  WiMAX enabled by radio killswitch; enabled by state file
NetworkManager[2917]: <info>  Networking is enabled by state file
NetworkManager[2917]: <info>  (eth0): new Ethernet device (carrier: OFF, driver: 'cpsw', ifindex: 4)
NetworkManager[2917]: <info>  (lo): link connected
NetworkManager[2917]: <info>  (lo): new Generic device (carrier: ON, driver: 'unknown', ifindex: 1)
NetworkManager[2917]: <info>  (can0): new Generic device (carrier: UNKNOWN, driver: 'c_can_platform', ifindex: 2)
NetworkManager[2917]: <info>  (can1): new Generic device (carrier: UNKNOWN, driver: 'c_can_platform', ifindex: 3)
NetworkManager[2917]: <info>  startup complete

root beaglebone:~# /opt/tools/loadwifi
[ 1042.818593] cfg80211: Calling CRDA to update world regulatory domain
[ 1043.041134] cfg80211: World regulatory domain updated:
[ 1043.048463] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 1043.059260] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 1043.069138] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 1043.078947] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm)
[ 1043.088743] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[ 1043.098463] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[ 1043.108236] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm)
[ 1043.118092] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[ 1043.127871] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
root beaglebone:~# [ 1045.958679] [sched_delayed] sched: RT throttling activated
[ 1046.339546] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
NetworkManager[2917]: <info>  (wlan0): using nl80211 for WiFi de[ 1046.369616] wlcore: loaded
vice control
NetworkManager[2917]: <info>  (wlan0): driver supports Access Point (AP) mode
NetworkManager[2917]: <info>  (wlan0): new 802.11 WiFi device (carrier: UNKNOWN, driver: 'wl18xx_driver', ifindex: 5)
NetworkManager[2917]: <info>  rfkill0: found WiFi radio killswitch (at /sys/devices/ocp.2/47810000.mmc/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/wl18x[ 1046.409098] wlcore: driver version:
x.2.auto/ieee80211/phy0/rfkill0) (driver wl18xx_driver)
NetworkManager[2917]: <info>  devices added (path: /sys/devices/ocp.2/47810000.mmc/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/wl18xx.2.auto/net/wlan0, iface: wlan0)
NetworkManager[2917]: <info>  device added (path: /sys/devices/ocp.2/47810000.mmc/mmc_host/mmc2/mmc2:0001/mmc2:00[ 1046.447825] wlcore: compilation time: Thu Jun 26 11:35:53 2014
01:2/wl18xx.2.auto/net/wlan0, iface: wlan0): no ifupdown configuration found.
NetworkManager[2917]: <info>  (wlan0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
[ 1046.947452] wlcore: PHY firmware version: Rev 8.2.0.0.195
[ 1047.037641] wlcore: firmware booted (Rev 8.8.0.0.13)
NetworkManager[2917]: <info>  wpa_supplicant stopped
NetworkManager[2917]: <info>  (wlan0): supplicant interface state: starting -> init

root beaglebone:~#
root beaglebone:~# ifconfig
eth0      Link encap:Ethernet  HWaddr ec:24:b8:cf:e0:be
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:56

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:336 (336.0 B)  TX bytes:336 (336.0 B)

wlan0     Link encap:Ethernet  HWaddr 5c:31:3e:ce:be:5b
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

my wpa_supplicant .config file is:

 cat .config
CONFIG_AP=y
CONFIG_BACKEND=file
CONFIG_CTRL_IFACE=y
CONFIG_DEBUG_FILE=y
CONFIG_DEBUG_SYSLOG=y
CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
CONFIG_DRIVER_NL80211=y
CONFIG_DRIVER_WEXT=y
CONFIG_DRIVER_WIRED=y
CONFIG_EAP_GTC=y
CONFIG_EAP_LEAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_OTP=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TLS=y
CONFIG_EAP_TTLS=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_IPV6=y
CONFIG_LIBNL32=y
CONFIG_PEERKEY=y
CONFIG_PKCS12=y
CONFIG_READLINE=y
CONFIG_SMARTCARD=y
CONFIG_WPS=y
CFLAGS += -I/usr/include/libnl3
CONFIG_CTRL_IFACE_DBUS=y
CONFIG_CTRL_IFACE_DBUS_NEW=y
CONFIG_CTRL_IFACE_DBUS_INTRO=y




any ideas what could be missing?

On Wed, Jun 8, 2016 at 10:01 AM, Ali Nematollahi <alirezan1 gmail com> wrote:
Ah I see. I understand now. Thanks Dan. I'll get that going and will post my results!

Thanks!!


On Wed, Jun 8, 2016 at 9:26 AM, Dan Williams <dcbw redhat com> wrote:
On Wed, 2016-06-08 at 08:29 -0700, Ali Nematollahi wrote:
> I can rebuild again but doesn't my current log say:
>
> Supported interface modes:
>
>                  * IBSS
>
>                  * managed
>
>                  * AP
>
>                  * AP/VLAN
>
> Doesn't it mean it supports ap mode and it was built with ap support?
>

Yeah, that means the *driver* is built with AP mode support.  My latest
email was that wpa_supplicant wasn't built with AP mode support.  The
driver only provides some mechanisms to put the card into AP mode, but
the supplicant itself (or hostapd) is what actually makes AP mode work.
 So you need to make sure wpa_supplicant is built with CONFIG_AP=y too.

Dan

> On Jun 7, 2016 2:13 PM, "Dan Williams" <dcbw redhat com> wrote:
>
> >
> > On Tue, 2016-06-07 at 13:00 -0700, Ali Nematollahi wrote:
> > >
> > > I've been using AP mode for over a year with the same set up. I
> > > use
> > > many
> > > commands to set it up but it has been working perfectly fine.
> > > Here is
> > > the
> > > output you requested:
> > I misread the error message; it's not from the kernel, but from
> > wpa_supplicant.  Your supplicant hasn't been built with AP mode
> > support, so you'll need to rebuild it with CONFIG_AP=y in the build
> > config.  NM is supposed to detect that the supplicant doesn't have
> > that
> > support, but I guess that's not working for some reason.
> >
> > Dan
> >




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