Quellcode durchsuchen

Merge pull request #2 from gnab/master

.
James Forcier vor 10 Jahren
Ursprung
Commit
3745b07e8c
2 geänderte Dateien mit 24 neuen und 1 gelöschten Zeilen
  1. 1 1
      hal/rtl8812a/rtl8812a_phycfg.c
  2. 23 0
      install.sh

+ 1 - 1
hal/rtl8812a/rtl8812a_phycfg.c

@@ -915,7 +915,7 @@ PHY_ConvertPowerLimitToPowerIndex(
 					else
 						channel = 51; // index of chnl 173 in chanl5G
 						
-					for ( rateSection = 0; rateSection < MAX_5G_RATE_SECTION_NUM; ++rateSection )
+					for ( rateSection = 1; rateSection < MAX_5G_RATE_SECTION_NUM; ++rateSection )
 					{	
 						if ( pHalData->odmpriv.PhyRegPgValueType == PHY_REG_PG_EXACT_VALUE ) {
 							// obtain the base dBm values in 5G band

+ 23 - 0
install.sh

@@ -0,0 +1,23 @@
+#!/bin/bash
+
+if [ "$(id -u)" != "0" ]; then
+   echo "This script must be run as root" 1>&2
+   exit 1
+fi
+
+make &&
+cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless &&
+depmod &&
+echo "
+                       ***Success***
+***Module will be activated automatically at next reboot***
+" &&
+
+while true; do
+    read -p "Do you wish to activate the module now? (y/n)" yn
+    case $yn in
+        [Yy]* ) insmod 8812au.ko && echo "***Module activated***" && break;;
+        [Nn]* ) exit;;
+        * ) echo "Please answer yes or no.";;
+    esac
+done