Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use with openthinclient ? #330

Open
YeyeX64 opened this issue Sep 8, 2023 · 1 comment
Open

how to use with openthinclient ? #330

YeyeX64 opened this issue Sep 8, 2023 · 1 comment

Comments

@YeyeX64
Copy link

YeyeX64 commented Sep 8, 2023

hello,

i'm looking for a solution to use this driver on openthinclient (light client, pxe or localboot on debian 10).

i think i must include it in the kernel used by pxe or localboot, but i can't do it.
Someone have a similar problem ?

best regards

Best regards

@nbrondeau
Copy link

this patch seems to work for me

diff --git a/core/rtw_rf.c b/core/rtw_rf.c
index c916c9f..bde8267 100644
--- a/core/rtw_rf.c
+++ b/core/rtw_rf.c
@@ -727,7 +727,11 @@ void rtw_regd_exc_list_free(struct rf_ctl_t *rfctl)
 		ent = LIST_CONTAINOR(cur, struct regd_exc_ent, list);
 		cur = get_next(cur);
 		rtw_list_delete(&ent->list);
-		rtw_mfree((u8 *)ent, sizeof(struct regd_exc_ent) + strlen(ent->regd_name) + 1);
+		#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 1))
+			rtw_mfree((u8 *)ent, sizeof(struct regd_exc_ent));
+		#else
+			rtw_mfree((u8 *)ent, sizeof(struct regd_exc_ent) + strlen(ent->regd_name) + 1);
+		#endif
 	}
 	rfctl->regd_exc_num = 0;
 
@@ -1182,7 +1186,11 @@ void rtw_txpwr_lmt_list_free(struct rf_ctl_t *rfctl)
 		if (ent->regd_name == rfctl->regd_name)
 			rfctl->regd_name = regd_str(TXPWR_LMT_NONE);
 		rtw_list_delete(&ent->list);
-		rtw_vmfree((u8 *)ent, sizeof(struct txpwr_lmt_ent) + strlen(ent->regd_name) + 1);
+		#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 1))
+			rtw_vmfree((u8 *)ent, sizeof(struct txpwr_lmt_ent));
+		#else
+			rtw_vmfree((u8 *)ent, sizeof(struct txpwr_lmt_ent) + strlen(ent->regd_name) + 1);
+		#endif
 	}
 	rfctl->txpwr_regd_num = 0;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants