diff --git a/patches-22.03.4/2008-solved-2.4G-wifi-disconnection-problem.patch b/patches-22.03.4/2008-solved-2.4G-wifi-disconnection-problem.patch new file mode 100644 index 0000000..f4a0752 --- /dev/null +++ b/patches-22.03.4/2008-solved-2.4G-wifi-disconnection-problem.patch @@ -0,0 +1,53 @@ +From b96c65d8ce0e4055395627df1efc21001722d31e Mon Sep 17 00:00:00 2001 +From: Yin Ni +Date: Fri, 9 Jun 2023 17:09:01 +0800 +Subject: [PATCH] e750-mcu: Solved 2.4G wifi disconnection problem. + +Signed-off-by: Yin Ni +--- + .../ath9k/984-fix-9531-tuningcaps.patch | 33 +++++++++++++++++++ + 1 file changed, 33 insertions(+) + create mode 100644 package/kernel/mac80211/patches/ath9k/984-fix-9531-tuningcaps.patch + +diff --git a/package/kernel/mac80211/patches/ath9k/984-fix-9531-tuningcaps.patch b/package/kernel/mac80211/patches/ath9k/984-fix-9531-tuningcaps.patch +new file mode 100644 +index 0000000000..4e4da8f0f5 +--- /dev/null ++++ b/package/kernel/mac80211/patches/ath9k/984-fix-9531-tuningcaps.patch +@@ -0,0 +1,33 @@ ++Index: b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c ++=================================================================== ++--- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +++++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c ++@@ -4050,15 +4050,23 @@ static void ar9003_hw_apply_tuning_caps( ++ struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; ++ u8 tuning_caps_param = eep->baseEepHeader.params_for_tuning_caps[0]; ++ ++- if (AR_SREV_9340(ah) || AR_SREV_9531(ah)) +++ if (AR_SREV_9340(ah)) ++ return; ++ ++ if (eep->baseEepHeader.featureEnable & 0x40) { ++ tuning_caps_param &= 0x7f; ++- REG_RMW_FIELD(ah, AR_CH0_XTAL, AR_CH0_XTAL_CAPINDAC, ++- tuning_caps_param); ++- REG_RMW_FIELD(ah, AR_CH0_XTAL, AR_CH0_XTAL_CAPOUTDAC, ++- tuning_caps_param); +++ if(AR_SREV_9531(ah)) +++ { +++ REG_RMW_FIELD(ah, 0x162c0, AR_CH0_XTAL_CAPINDAC, +++ tuning_caps_param); +++ REG_RMW_FIELD(ah, 0x162c0, AR_CH0_XTAL_CAPOUTDAC, +++ tuning_caps_param); +++ }else{ +++ REG_RMW_FIELD(ah, AR_CH0_XTAL, AR_CH0_XTAL_CAPINDAC, +++ tuning_caps_param); +++ REG_RMW_FIELD(ah, AR_CH0_XTAL, AR_CH0_XTAL_CAPOUTDAC, +++ tuning_caps_param); +++ } ++ } ++ } ++ +-- +2.25.1 +