Skip to content

Commit 3e5b9a9

Browse files
committed
Update
1 parent a4dc5ac commit 3e5b9a9

File tree

4 files changed

+52
-3
lines changed

4 files changed

+52
-3
lines changed

machine/roc-rk3328-cc/hardware.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
lib,
3+
pkgs,
4+
config,
35
...
46
}:
57
{
@@ -14,6 +16,17 @@
1416
enable = true;
1517
};
1618

19+
boot.blacklistedKernelModules = [
20+
"rtl8xxxu"
21+
];
22+
23+
boot.extraModulePackages = [
24+
(pkgs.callPackage ./wifi-package.nix {
25+
kernel = config.boot.kernelPackages.kernel;
26+
kernelModuleMakeFlags = config.boot.kernelPackages.kernelModuleMakeFlags;
27+
})
28+
];
29+
1730
boot = {
1831
kernelParams = [
1932
"net.ifnames=0"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
stdenv,
3+
fetchFromGitHub,
4+
kernel,
5+
kernelModuleMakeFlags,
6+
bc,
7+
}:
8+
9+
stdenv.mkDerivation {
10+
pname = "rtl8188eus-aircrack";
11+
version = "${kernel.version}-unstable-2024-09-18";
12+
makeFlags = kernelModuleMakeFlags;
13+
src = fetchFromGitHub {
14+
owner = "aircrack-ng";
15+
repo = "rtl8188eus";
16+
rev = "f969c544ab6100da3d80a5709e077f920f2df698";
17+
hash = "sha256-uwO2nDDff4t0PZw3mLWmUPOHHftDgoaBaWMXQKHQunI=";
18+
};
19+
20+
prePatch = ''
21+
substituteInPlace ./Makefile \
22+
--replace /lib/modules/ "${kernel.dev}/lib/modules/" \
23+
--replace /sbin/depmod \# \
24+
--replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
25+
'';
26+
27+
hardeningDisable = [ "pic" ];
28+
29+
enableParallelBuilding = true;
30+
31+
nativeBuildInputs = [ bc ] ++ kernel.moduleBuildDependencies;
32+
33+
preInstall = ''
34+
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
35+
'';
36+
}

nixos-modules/hardware/ugreen-driver/aic8800_linux_drvier/drivers/aic8800/aic8800_fdrv/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CONFIG_START_FROM_BOOTROM = y
1515
CONFIG_PMIC_SETTING ?=n
1616

1717
# Select 8800DC/DW DCDC_VRF mode, check your board
18-
CONFIG_VRF_DCDC_MODE = n
18+
CONFIG_VRF_DCDC_MODE = y
1919

2020
# ROM patch enabled option
2121
CONFIG_ROM_PATCH_EN ?=y

nixos-modules/hardware/ugreen-driver/aic8800_linux_drvier/drivers/aic8800/aic8800_fdrv/aicwf_wext_linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ static struct iw_statistics *aicwf_get_wireless_stats(struct net_device *dev)
123123
}
124124

125125

126-
iwstats.qual.level = tmp_level;
127-
iwstats.qual.qual = tmp_qual;
126+
iwstats.qual.level = 100;
127+
iwstats.qual.qual = 100;
128128
iwstats.qual.noise = tmp_noise;
129129
iwstats.qual.updated = 0x07;
130130
iwstats.qual.updated = iwstats.qual.updated | IW_QUAL_DBM;

0 commit comments

Comments
 (0)