1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/root/package/kernel/mwlwifi/patches/004-remove-get_fs.patch
Ycarus (Yannick Chabanois) b7d492bb53 Fix mwlwifi on 5.15
2021-11-30 17:48:10 +01:00

23 lines
628 B
Diff

--- a/hif/pcie/pcie.c 2021-11-26 16:47:58.360969448 +0100
+++ b/hif/pcie/pcie.c 2021-11-26 16:48:46.108695785 +0100
@@ -1293,8 +1293,10 @@
char *buf = &str_buf[0];
mm_segment_t oldfs;
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
oldfs = get_fs();
set_fs(KERNEL_DS);
+#endif
buf += sprintf(buf, "\nMAC: %pM\n", bf_mimo_ctrl->rec_mac);
buf += sprintf(buf, "SU_0_MU_1: %d\n", bf_mimo_ctrl->type);
@@ -1314,7 +1316,9 @@
filename, (unsigned int)fp_data);
}
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))
set_fs(oldfs);
+#endif
}
static void pcie_process_account(struct ieee80211_hw *hw)