projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39fb8c3
)
netifd: wireless: default to GCMP WPA cipher on 802.11ad
author
Daniel Golle
<daniel@makrotopia.org>
Tue, 5 Jan 2021 01:11:21 +0000
(
01:11
+0000)
committer
Daniel Golle
<daniel@makrotopia.org>
Tue, 5 Jan 2021 02:10:55 +0000
(
02:10
+0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
scripts/netifd-wireless.sh
patch
|
blob
|
history
diff --git
a/scripts/netifd-wireless.sh
b/scripts/netifd-wireless.sh
index 73bce3d3e2b1170cbbd87f729e56cdc9a9c5752a..d915402a8d3ff38925efaf6664d7dcc55747ce30 100644
(file)
--- a/
scripts/netifd-wireless.sh
+++ b/
scripts/netifd-wireless.sh
@@
-208,7
+208,13
@@
wireless_vif_parse_encryption() {
auth_mode_open=1
auth_mode_shared=0
auth_type=none
- wpa_cipher=CCMP
+
+ if [ "$hwmode" = "ad" ]; then
+ wpa_cipher="GCMP"
+ else
+ wpa_cipher="CCMP"
+ fi
+
case "$encryption" in
*tkip+aes|*tkip+ccmp|*aes+tkip|*ccmp+tkip) wpa_cipher="CCMP TKIP";;
*aes|*ccmp) wpa_cipher="CCMP";;