File tree Expand file tree Collapse file tree 4 files changed +52
-3
lines changed
nixos-modules/hardware/ugreen-driver/aic8800_linux_drvier/drivers/aic8800/aic8800_fdrv Expand file tree Collapse file tree 4 files changed +52
-3
lines changed Original file line number Diff line number Diff line change 11{
22 lib ,
3+ pkgs ,
4+ config ,
35 ...
46} :
57{
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"
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ CONFIG_START_FROM_BOOTROM = y
1515CONFIG_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
2121CONFIG_ROM_PATCH_EN ?=y
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments