2.4 ghz working, 5ghz could not set country code

This commit is contained in:
Fabian Hauser 2020-07-15 17:18:43 +00:00
parent 69269c05a8
commit 1d47d4a5b8
7 changed files with 42 additions and 18 deletions

View 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
'';
}];
}

View file

@ -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
'';
}

View file

@ -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]