Modify

Opened 3 years ago

Last modified 2 years ago

#18021 reopened defect

iapp_interface setting does not work

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: base system Version: Barrier Breaker 14.07
Keywords: iapp Cc:

Description

Adding option iapp_interface 'lan' (as well as 'eth0')does not
produce output "iapp_intarface=eth0" in the /var/run/hostapd-phy0.conf
Debug output show what command in /lib/net/hostapd.sh:
iapp_interface="$(uci_get_state network "$iapp_interface" ifname "$iapp_interface")"
always return empty string, even if $iapp_interface valid before it.

Commenting this line works, but require interface name, not network name.

Attachments (0)

Change History (6)

comment:1 Changed 3 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r42764

comment:2 Changed 3 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

I'm sorry, but [r42764] fix other ticket, not this.
Problem in the iapp_interface="$(uci_get_state network "$iapp_interface" ifname "$iapp_interface")" line, variable $iapp_interface valid before it, but always empty after.
Something wrong with executing function uci_get_state from this file, maybe smth missing ?

comment:3 Changed 3 years ago by kpucynski

in r42887 I have the same issue: iapp_interface is defined in /etc/config/wireless but is not propagated to hotapd.conf...

comment:4 Changed 3 years ago by wolfshoehle@…

uci_get_state is simply not available in hostapd.sh! The file is sourced in /lib/netifd/wireless/mac80211.sh and uci.sh is not. Simply add
. /lib/config/uci.sh
as the second line to mac80211.sh. For me that did the trick!

But pay attention! I was required to install

hostapd 2014-06-03.1-1 This package contains a full featured IEEE 802.1x/WPA/EAP/RADIUS Authenticator.
hostapd-common 2014-06-03.1-1 hostapd/wpa_supplicant common support files

because "hostapd-common 2014-06-03.1" from the vanilla image on my TL-WR1043ND had no IAPP-Support and could not start with iapp_interface entry in the configuration file.

Regards!

comment:5 Changed 3 years ago by anonymous

Solution from wolfshoehle works for me, but i cant enable iapp on a dual radio, only one radio start with iapp the other says udp address already in use.

wdr3600 r45594

Sun May  3 13:22:37 2015 daemon.notice netifd: radio1 (1545): IEEE 802.11F (IAPP) using interface br-lan
Sun May  3 13:22:38 2015 kern.info kernel: [  171.420000] br-lan: port 2(wlan1) entered forwarding state
Sun May  3 13:22:38 2015 kern.info kernel: [  171.430000] br-lan: port 2(wlan1) entered forwarding state
Sun May  3 13:22:38 2015 kern.info kernel: [  171.430000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Sun May  3 13:22:38 2015 daemon.notice netifd: radio1 (1545): wlan1: interface state COUNTRY_UPDATE->ENABLED
Sun May  3 13:22:38 2015 daemon.notice netifd: radio1 (1545): wlan1: AP-ENABLED
Sun May  3 13:22:38 2015 kern.info kernel: [  171.490000] br-lan: port 3(wlan0) entered disabled state
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): iapp_init - bind[UDP]: Address already in use
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): iapp_deinit - setsockopt[UDP,IP_DEL_MEMBERSHIP]: Cannot assign requested address
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): IEEE 802.11F (IAPP) initialization failed.
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): Interface initialization failed
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): wlan0: interface state COUNTRY_UPDATE->DISABLED
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): wlan0: AP-DISABLED
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): wlan0: Unable to setup interface.
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): wlan0: interface state DISABLED->DISABLED
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): wlan0: AP-DISABLED
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): hostapd_free_hapd_data: Interface wlan0 wasn't started
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): ELOOP: remaining socket: sock=18 eloop_data=0xaef6e0 user_data=(nil) handler=0x4197a5
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): cat: can't open '/var/run/wifi-phy0.pid': No such file or directory
Sun May  3 13:22:38 2015 kern.info kernel: [  171.560000] device wlan0 left promiscuous mode
Sun May  3 13:22:38 2015 kern.info kernel: [  171.560000] br-lan: port 3(wlan0) entered disabled state
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): Command failed: Invalid argument
Sun May  3 13:22:38 2015 daemon.notice netifd: radio0 (1544): Device setup failed: HOSTAPD_START_FAILED

comment:6 Changed 2 years ago by bordjukov@…

The initial issue should be fixed by /changeset/47455.html

I've submitted a patch upstream for the issue with IAPP with multiple hostap instances: http://lists.infradead.org/pipermail/hostap/2015-November/034162.html

Add Comment

Modify Ticket

Action
as reopened .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.