projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix hostapd a/g mode if only the channel is configured in the config
[librecmc/librecmc.git]
/
package
/
hostapd
/
files
/
hostapd.sh
diff --git
a/package/hostapd/files/hostapd.sh
b/package/hostapd/files/hostapd.sh
index 7a67cec949c03f72ac0cae27b7c57a2a6088f85a..1159c3b15646d8fadb354d473f13c1487ad9e51b 100644
(file)
--- a/
package/hostapd/files/hostapd.sh
+++ b/
package/hostapd/files/hostapd.sh
@@
-79,7
+79,10
@@
hostapd_setup_vif() {
11a) agmode=a;;
11b) agmode=b;;
11g) agmode=g;;
- *) agmode=;;
+ *)
+ agmode=
+ [ "$channel" -gt 14 ] && agmode=a
+ ;;
esac
cat > /var/run/hostapd-$ifname.conf <<EOF
driver=$driver