X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fyousong.git;a=blobdiff_plain;f=package%2Fkernel%2Fmac80211%2Fpatches%2F936-ath10k_skip_otp_check.patch;h=596ef9863902ecbbd3cdb394c7ffde3ba509414f;hp=7f51dd2dd667c18f5aea86d875508f750870ec11;hb=916aebb300e9e9215723dd9a3892d91ba5695411;hpb=c354591d1b7075bf1e393bb4ccdda4a82d238dfe diff --git a/package/kernel/mac80211/patches/936-ath10k_skip_otp_check.patch b/package/kernel/mac80211/patches/936-ath10k_skip_otp_check.patch index 7f51dd2dd6..596ef98639 100644 --- a/package/kernel/mac80211/patches/936-ath10k_skip_otp_check.patch +++ b/package/kernel/mac80211/patches/936-ath10k_skip_otp_check.patch @@ -1,6 +1,6 @@ --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c -@@ -1168,9 +1168,6 @@ static int ath10k_core_fetch_firmware_fi +@@ -1243,9 +1243,6 @@ static int ath10k_core_fetch_firmware_fi { int ret; @@ -10,17 +10,26 @@ ar->fw_api = 5; ath10k_dbg(ar, ATH10K_DBG_BOOT, "trying fw api %d\n", ar->fw_api); -@@ -1873,6 +1870,9 @@ static int ath10k_core_probe_fw(struct a +@@ -1944,7 +1941,7 @@ EXPORT_SYMBOL(ath10k_core_stop); + static int ath10k_core_probe_fw(struct ath10k *ar) + { + struct bmi_target_info target_info; +- int ret = 0; ++ int calret, ret = 0; + + ret = ath10k_hif_power_up(ar); + if (ret) { +@@ -1968,6 +1965,9 @@ static int ath10k_core_probe_fw(struct a goto err_power_down; } + /* calibration file is optional, don't check for any errors */ -+ int calret = ath10k_fetch_cal_file(ar); ++ calret = ath10k_fetch_cal_file(ar); + ret = ath10k_core_fetch_firmware_files(ar); if (ret) { ath10k_err(ar, "could not fetch firmware files (%d)\n", ret); -@@ -1895,11 +1895,14 @@ static int ath10k_core_probe_fw(struct a +@@ -1990,11 +1990,14 @@ static int ath10k_core_probe_fw(struct a "could not load pre cal data: %d\n", ret); }