2.4 ghz working, 5ghz could not set country code
This commit is contained in:
parent
69269c05a8
commit
1d47d4a5b8
7 changed files with 42 additions and 18 deletions
15
hardware/wle-regulatory-domain/default.nix
Normal file
15
hardware/wle-regulatory-domain/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, lib, pkgs, ... }: {
|
||||
boot.kernelPatches = [{
|
||||
name = "ath10k-override-eeprom-regulatory-domain";
|
||||
patch = ./ath10k-override-eeprom-regulatory-domain.patch;
|
||||
extraConfig = ''
|
||||
EXPERT y
|
||||
CFG80211_CERTIFICATION_ONUS y
|
||||
ATH_REG_DYNAMIC_USER_REG_HINTS y
|
||||
ATH_REG_DYNAMIC_USER_CERT_TESTING y
|
||||
ATH_REG_DYNAMIC_USER_CERT_TESTING y
|
||||
ATH9K_DFS_CERTIFIED y
|
||||
ATH10K_DFS_CERTIFIED y
|
||||
'';
|
||||
}];
|
||||
}
|
|
@ -1,7 +1,11 @@
|
|||
# Note: You can either use wel600vx.nix or wle900vx.nix
|
||||
{ config, lib, pkgs, ... }: {
|
||||
#TODO!
|
||||
imports = [
|
||||
./wle-regulatory-domain
|
||||
];
|
||||
|
||||
services.hostapd5ghz.extraConfig = ''
|
||||
ht_capab=[LDPC][HT40][SMPS-STATIC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]
|
||||
fragm_threshold=-1
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
{ config, lib, pkgs, ... }: {
|
||||
boot.kernelPatches = [{
|
||||
name = "ath10k-override-eeprom-regulatory-domain";
|
||||
patch = ./wle900vx/ath10k-override-eeprom-regulatory-domain.patch;
|
||||
extraConfig = ''
|
||||
EXPERT y
|
||||
CFG80211_CERTIFICATION_ONUS y
|
||||
ATH_REG_DYNAMIC_USER_REG_HINTS y
|
||||
ATH_REG_DYNAMIC_USER_CERT_TESTING y
|
||||
ATH_REG_DYNAMIC_USER_CERT_TESTING y
|
||||
'';
|
||||
}];
|
||||
imports = [
|
||||
./wle-regulatory-domain
|
||||
];
|
||||
|
||||
services.hostapd5ghz.extraConfig = ''
|
||||
ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40][TX-STBC][DSSS_CCK-40]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue