Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3290 - hostapd always sets ap_isolate to 1 no matter what the wireless config is set to #8159

Open
openwrt-bot opened this issue Aug 17, 2020 · 3 comments
Labels
core packages pull request/issue for core (in-tree) packages flyspray release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release

Comments

@openwrt-bot
Copy link

PhobosK:

I have two devices that show the same problem - both TP-Link, but different models.
The problem is that the devices/clients connected to any of the wlans are always isolated no matter what the config "isolate clients" is set to.
These devices cannot ping and see each other but they can be pinged and they can ping devices from/to devices in lan.

Further more the generated /var/run/hostapd-phy0.conf and /var/run/hostapd-phy1.conf
always have the //ap_isolate=1//

The tested devices are:

root@OpenWrt:~# ubus call system board
{
"kernel": "4.14.180",
"hostname": "OpenWrt",
"system": "Qualcomm Atheros QCA9558 ver 1 rev 0",
"model": "TP-Link Archer C7 v2",
"board_name": "tplink,archer-c7-v2",
"release": {
"distribution": "OpenWrt",
"version": "19.07.3",
"revision": "r11063-85e04e9f46",
"target": "ath79/generic",
"description": "OpenWrt 19.07.3 r11063-85e04e9f46"
}
}

root@OpenWrt:~# ubus call system board { "kernel": "4.14.180", "hostname": "OpenWrt", "system": "Atheros AR9344 rev 2", "model": "TP-Link TL-WDR4300 v1", "board_name": "tplink,tl-wdr4300-v1", "release": { "distribution": "OpenWrt", "version": "19.07.3", "revision": "r11063-85e04e9f46", "target": "ath79/generic", "description": "OpenWrt 19.07.3 r11063-85e04e9f46" } }

No packages have been updated manually on both devices.
Both devices has defaults sets coming with the default factory OpenWrt 19.07.3 image.
Both devices were set for their //Network -> Wireless -> wlan0 (and wlan1) -> Interface configuration -> Advanced settings -> Isolate clients// //UNCHECKED//

Here is the config of one of the devices (///etc/config/wireless//) and the respective generated ///var/run/hostapd-phy0.conf//

config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/ahb/18100000.wmac'
option channel 'auto'
option country 'BG'
option htmode 'HT20'

config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option key 'XXXXXX'
option ssid 'YYYYYYYY'
option encryption 'psk2'

Even when option isolate '0' is added manually using uci not luci, and restarting the device the respective hostapd-phy0.conf remains with ap_isolate=1

driver=nl80211
logger_syslog=127
logger_syslog_level=2
logger_stdout=127
logger_stdout_level=2
country_code=BG
ieee80211d=1
hw_mode=g
beacon_int=100
channel=acs_survey

ieee80211n=1
ht_coex=0
ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]

interface=wlan0
ctrl_interface=/var/run/hostapd
ap_isolate=1
bss_load_update_period=60
chan_util_avg_period=600
disassoc_low_ack=1
preamble=1
wmm_enabled=1
ignore_broadcast_ssid=0
uapsd_advertisement_enabled=1
utf8_ssid=1
multi_ap=0
wpa_passphrase=XXXXXX
auth_algs=1
wpa=2
wpa_pairwise=CCMP
ssid=YYYYYYYY
bridge=br-lan
wpa_disable_eapol_key_retries=0
wpa_key_mgmt=WPA-PSK
okc=0
disable_pmksa_caching=1
bssid=xx:xx:xx:xx:xx:xx

My guess is that hostapd/wpad doesn't set properly the ap_isolate according to the config.

Please let me know if you need further info.

Thanks

@openwrt-bot
Copy link
Author

odmdas:

Hi, PhobosK.
According to [0], ap_isolate=1 is always present in hostapd config file.
Hope this topic is helpful...

[0] https://forum.openwrt.org/t/clients-in-same-wlan-cant-reach-each-other/2501/22

@openwrt-bot
Copy link
Author

Brain2000:

I am able to reproduce. I spent over an hour trying to figure out why wifi clients could not talk, then found this bug report.

@aparcar aparcar added release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release core packages pull request/issue for core (in-tree) packages labels Feb 22, 2022
@badfish
Copy link

badfish commented Jul 30, 2023

There is code (in /lib/netifd/netifd-wireless.sh) that silently forces ap_isolate to 1, regardless of the setting in luci, unless you also have the option 'multicast_to_unicast' set to '0' in the entry for the br_lan device in /etc/config/network. I don't see any way of setting this option in luci, so I had to edit /etc/config/network by hand to add it.
Perhaps the help text for the 'isolate' option in luci should mention this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core packages pull request/issue for core (in-tree) packages flyspray release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release
Projects
None yet
Development

No branches or pull requests

3 participants