summaryrefslogtreecommitdiff
path: root/recipes-bsp/ti-wifi-utils/ti-wifi-utils/plt_drop_insmod_rmmod.patch
blob: 5bdafefa5b0703df1e5b6f3656d23c87d1cbef5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- a/plt.c	2016-05-31 17:23:45.000000000 +0300
+++ b/plt.c	2016-05-31 18:04:25.022788401 +0300
@@ -1158,10 +1158,10 @@
 	}
 
 	/* Load module */
-	res = insmod(modpath);
-	if (res) {
-		goto out_removenvs;
-	}
+//	res = insmod(modpath);
+//	if (res) {
+//		goto out_removenvs;
+//	}
 
 	res = plt_do_power_on(state, devname);
 	if (res < 0)
@@ -1188,7 +1188,7 @@
 
 	/* we can ignore the return value, because we rmmod anyway */
 	plt_do_power_off(state, devname);
-	rmmod(modpath);
+//	rmmod(modpath);
 
 	printf("Calibration done. ");
 	if (cmn.fem0_bands) {
@@ -1214,7 +1214,7 @@
 	/* we can ignore the return value, because we rmmod anyway */
 	plt_do_power_off(state, devname);
 out_rmmod:
-	rmmod(modpath);
+//	rmmod(modpath);
 
 out_removenvs:
 	fprintf(stderr, "Calibration not complete. Removing half-baked nvs\n");