1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-12 19:31:52 +00:00

Fix mwlwifi on 5.15

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-11-30 17:48:10 +01:00
parent 09f5829c92
commit b7d492bb53

View file

@ -0,0 +1,23 @@
--- 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)