Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

grump

  • Loading branch information...
commit 552bd52272d6647afc66abd00ca34deacdb1cc07 1 parent 4def507
Dave Taht authored
Showing with 2,040 additions and 496 deletions.
  1. +2,021 −488 config-wndr3700v2
  2. +12 −6 files/lib/wifi/mac80211.sh
  3. +7 −2 packages.list
View
2,509 config-wndr3700v2
2,021 additions, 488 deletions not shown
View
18 files/lib/wifi/mac80211.sh
@@ -70,6 +70,8 @@ detect_mac80211() {
mode_11n=""
mode_band="g"
channel="11"
+ htmode=""
+
ht_cap=0
for cap in $(iw phy "$dev" info | grep 'Capabilities:' | cut -d: -f2); do
ht_cap="$(($ht_cap | $cap))"
@@ -77,12 +79,7 @@ detect_mac80211() {
ht_capab="";
[ "$ht_cap" -gt 0 ] && {
mode_11n="n"
- iw phy "$dev" info | grep -q '2412 MHz' || {
- append ht_capab " option htmode HT40+" "$N"
- }
- iw phy "$dev" info | grep -q '5200 MHz' || {
- append ht_capab " option htmode HT20" "$N"
- }
+ htmode="HT20"
list=" list ht_capab"
[ "$(($ht_cap & 1))" -eq 1 ] && append ht_capab "$list LDPC" "$N"
@@ -98,6 +95,15 @@ detect_mac80211() {
smartssid=""
iw phy "$dev" info | grep -q '2412 MHz' || { mode_band="a"; channel="36"; smartssid=5; }
+ vht_cap=$(iw phy "$dev" info | grep -c 'VHT Capabilities')
+ [ "$vht_cap" -gt 0 ] && {
+ mode_band="a";
+ channel="36"
+ htmode="VHT80"
+ }
+
+ [ -n $htmode ] && append ht_capab " option htmode $htmode" "$N"
+
if [ -x /usr/bin/readlink ]; then
path="$(readlink -f /sys/class/ieee80211/${dev}/device)"
path="${path##/sys/devices/}"
View
9 packages.list
@@ -142,7 +142,6 @@ dibbler-server
openssh-sftp-server
samba36-server
zile
-aqm-scripts
rng-tools
avahi-daemon
fprobe
@@ -180,5 +179,11 @@ nut-monitor
tahoe-lafs
aiccu
pure-ftpd
-luci-app-aqm
tinc
+sqm-scripts
+luci-app-sqm
+mosh-server
+nmap
+owampd
+bind-server
+isc-dhcp-server-ipv6
Please sign in to comment.
Something went wrong with that request. Please try again.