firmware icon indicating copy to clipboard operation
firmware copied to clipboard

default iw package missing 'set plink_action'

Open goofus opened this issue 5 years ago • 16 comments

To ignore a 802.11s mesh point as described here, the 'set plink_action' setting has to be available in 'iw'. However, the default version doesn't support that: iw.txt

Please include the 'iw-full' package as the default. iw-full.txt

goofus avatar Aug 29 '19 14:08 goofus

as described here

What's "here"?

SvenRoederer avatar Aug 29 '19 21:08 SvenRoederer

as described here

What's "here"?

Sorry about that, forgot to add the actual link

goofus avatar Aug 29 '19 22:08 goofus

Excluding node from the mesh seems to be an uncommon / unwated intention / border-case, as also mentioned by the Gluon-guys. So changing the package-list will not be done in 1st place. But you can install the iw-full packkage directly from the openwrt-build-server and test.

SvenRoederer avatar Sep 01 '19 13:09 SvenRoederer

Ok, that's actually surprising for me. I thought meshing via LAN is common. Now, if two routers see each over the air shouldn't they stop meshing over wifi to save airtime? In my opinion 802.11s is a central technology and hence all settings should be adjustable by default (as it was in latest stable).

goofus avatar Sep 02 '19 08:09 goofus

But you can install the iw-full packkage directly from the openwrt-build-server and test.

root@router:~# opkg install iw-full Installing iw-full (4.14-1) to root... Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mips_24kc/base/iw-full_4.14-1_mips_24kc.ipk Collected errors:

  • check_data_file_clashes: Package iw-full wants to install file /usr/sbin/iw But that file is already provided by package * iw
  • opkg_install_cmd: Cannot install package iw-full.

Edit: Ok, it's possible to force remove iw and install iw-full, this changes the necessity of including it in default.

goofus avatar Sep 03 '19 06:09 goofus

As far as I remember we considered this in Gluon, but the plink_action is not persisted across reconnects of mesh links.

The plink_action is stored in the station entry¹, so if the station goes missing in its entirety so does the plink_action. For this package to work we'd currently need a userspace application managing the blocklist and tracking station events via nl80211.

[1] https://elixir.bootlin.com/linux/v5.0-rc3/source/include/net/cfg80211.h#L981

https://github.com/freifunk-gluon/packages/pull/118#issuecomment-457669029

mweinelt avatar Dec 26 '19 14:12 mweinelt

I did it that way

nickbash11 avatar Jul 08 '20 14:07 nickbash11

@mweinelt Any idea if hostapd is working on this?

@nickbash11 your package makes it quite nice to use this function, even the bash script might not be the most ressource effective solution. I see some use for it and this package might provide a solution for the scenario mentioned by @goofus in comment https://github.com/freifunk-berlin/firmware/issues/726#issuecomment-527062302.

SvenRoederer avatar Jul 08 '20 21:07 SvenRoederer

@SvenRoederer I use it to prevent uninvited guests and any pests, because authsae decreases common speed of mesh network as I wrote in this post. It looks like an incompatibility with ath9k (HT40 mode) I think.

nickbash11 avatar Jul 09 '20 04:07 nickbash11

@mweinelt Any idea if hostapd is working on this?

Not to my knowledge.

mweinelt avatar Jul 09 '20 11:07 mweinelt

@goofus u can use my fork https://github.com/Freifunk-Spalter/packages and build your own freifunk image with full iw package using openwrt image builder. If u have any questions how to use it, just mention me in matrix channel.

PolynomialDivision avatar Jul 09 '20 16:07 PolynomialDivision

Ok, that's actually surprising for me. I thought meshing via LAN is common. Now, if two routers see each over the air shouldn't they stop meshing over wifi to save airtime? In my opinion 802.11s is a central technology and hence all settings should be adjustable by default (as it was in latest stable).

By theory when meshing over LAN and meshing over WiFi, the Routing-daemon should prefer the wired link. That's what I would expect. So on the wireless link there should only be "hello" traffic, which should not have a huge impact. But in case the LAN-link fails, the Wifi-link should jump in quite quickly. Also as @mweinelt mentioned excluding a client will need need to be done on every reconnect.

@PolynomialDivision not sure how your mixup-feed will help with the initial issue of @goofus . I suggest to have a freifunk-berlin image with iw-full embedded to:

  • clone the freifunk repo
  • download freifunk-berlin-imagebuilder
  • unpack the imagebuilder
  • copy the iw-full*.ipk into the packages folder
  • tar.xz the folder again
  • modify an existing .package file in the packagelists folder to include iw-full in place of iw
  • run the Makefile to use a preexisting imagebuilder (https://github.com/freifunk-berlin/firmware#customizing-make)

This should build an image with with iw-full in just some minutes. Alternatively you can just modify a .package file and recompile all yourself.

SvenRoederer avatar Jul 09 '20 21:07 SvenRoederer

@PolynomialDivision not sure how your mixup-feed will help with the initial issue of @goofus .

It is more a tidied-up feed. ;) That is exactly the usecase why I forked, since I wanted to build my own images with imagebuilder and easily add packages, compile stuff, or install things with opkg.

PolynomialDivision avatar Jul 09 '20 21:07 PolynomialDivision

@SvenRoederer I use it to prevent uninvited guests and any pests, because authsae decreases common speed of mesh network as I wrote in this post. It looks like an incompatibility with ath9k (HT40 mode) I think.

As you talk on authsae: have a look at https://github.com/freifunk-gluon/gluon/issues/1636#issuecomment-464229021 which references that authsae was dropped upstream, as it was not working well.

SvenRoederer avatar Jul 09 '20 21:07 SvenRoederer

Anyway, devices with ath9k do not work properly with SAE.

nickbash11 avatar Jul 10 '20 04:07 nickbash11

Not sure if we should capture this issue to discuss on SAE, esp for ath9k.

@goofus Not sure if my suggestion in https://github.com/freifunk-berlin/firmware/issues/726#issuecomment-656349226 will fit your needs and I don't see a great interest in switching to iw-full. But feel free to open a PR, I don't see a reason for vetoing.

SvenRoederer avatar Jul 10 '20 18:07 SvenRoederer