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

HT40 vs. HT40+ #25

Closed
FreifunkUFO opened this issue Dec 21, 2014 · 6 comments
Closed

HT40 vs. HT40+ #25

FreifunkUFO opened this issue Dec 21, 2014 · 6 comments
Labels

Comments

@FreifunkUFO
Copy link
Contributor

the config in /etc/config/network seems inconsistent with luci

http://lists.freifunk.net/pipermail/firmware-devel-freifunk.net/2014-December/000164.html

@FreifunkUFO
Copy link
Contributor Author

Nils schrieb auf der firmware-devel mailingliste:

Ohne das Problem jetzt genauer angeschaut zu haben:

Das Skript, das ad-hoc Interfaces konfiguriert kann (als ich es
zuletzt vor ein paar Wochen angeschaut hatte) nicht mit HT40 (ohne
Suffix) umgehen. Für alle anderen Modi gibt es wohl einen
Automatismus, der bei HT40 automatisch + bzw - wählt.

Vielleicht hilft das ja weiter.

@dangowrt
Copy link

Ich denk mal, dann wird das wohl helfen:

diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index d8fa07e..992bd6a 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -523,6 +523,18 @@ mac80211_setup_adhoc() {
    mcval=
    [ -n "$mcast_rate" ] && hostapd_add_rate mcval "$mcast_rate"

+   case "$htmode" in
+       "HT40")
+           if [ "$channel" -lt 7 ]; then
+               htmode="HT40+"
+           else
+               htmode="HT40-"
+           fi
+           ;;
+       *)
+           ;;
+   esac
+
    iw dev "$ifname" ibss join "$ssid" $freq $htmode fixed-freq $bssid \
        ${beacon_int:+beacon-interval $beacon_int} \
        ${brstr:+basic-rates $brstr} \

Bitte testen, ich hab gerade keine hardware zur hand. Vermutlich wird htmode schon irgendwo mal gesetzt, im netifd wireless script oder so...

@FreifunkUFO
Copy link
Contributor Author

ist das jetzt selbstgehakt oder schon in openwrt online?
wenn letzteres, seit wann ungefähr?

patch funktioniert zb NUR für 2.4. GHz wifi :-(

@dangowrt
Copy link

Selbst gehackt und geht nach OpenWrt-devel, wenn's denn hilft...

On Sun, Dec 21, 2014 at 06:32:29PM -0800, FreifunkUFO wrote:

ist das jetzt selbstgehakt oder schon in openwrt online?
wenn letzteres, seit wann ungefähr?


Reply to this email directly or view it on GitHub:
#25 (comment)

@FreifunkUFO
Copy link
Contributor Author

danke @andrenarchy basti und nbd:
https://dev.openwrt.org/ticket/18268

für 5ghz sieht dastrotzdem noch komisch aus..

@FreifunkUFO
Copy link
Contributor Author

nee, quatsch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants