mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
Merge branch 'master' of https://github.com/coolsnowwolf/lede
This commit is contained in:
commit
7acca53f88
@ -914,10 +914,14 @@ static inline void __RtmpOSFSInfoChange(OS_FS_INFO * pOSFSInfo, BOOLEAN bSet)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
pOSFSInfo->fs = get_fs();
|
pOSFSInfo->fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
set_fs(pOSFSInfo->fs);
|
set_fs(pOSFSInfo->fs);
|
||||||
|
#endif
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
|
||||||
current->fsuid = pOSFSInfo->fsuid;
|
current->fsuid = pOSFSInfo->fsuid;
|
||||||
current->fsgid = pOSFSInfo->fsgid;
|
current->fsgid = pOSFSInfo->fsgid;
|
||||||
@ -1936,8 +1940,10 @@ VOID RtmpDrvAllMacPrint(
|
|||||||
if (!msg)
|
if (!msg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
orig_fs = get_fs();
|
orig_fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* open file */
|
/* open file */
|
||||||
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
||||||
@ -1965,7 +1971,9 @@ VOID RtmpDrvAllMacPrint(
|
|||||||
}
|
}
|
||||||
filp_close(file_w, NULL);
|
filp_close(file_w, NULL);
|
||||||
}
|
}
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
set_fs(orig_fs);
|
set_fs(orig_fs);
|
||||||
|
#endif
|
||||||
os_free_mem(NULL, msg);
|
os_free_mem(NULL, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1987,8 +1995,10 @@ VOID RtmpDrvAllE2PPrint(
|
|||||||
if (!msg)
|
if (!msg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
orig_fs = get_fs();
|
orig_fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* open file */
|
/* open file */
|
||||||
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
||||||
@ -2017,7 +2027,9 @@ VOID RtmpDrvAllE2PPrint(
|
|||||||
}
|
}
|
||||||
filp_close(file_w, NULL);
|
filp_close(file_w, NULL);
|
||||||
}
|
}
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
set_fs(orig_fs);
|
set_fs(orig_fs);
|
||||||
|
#endif
|
||||||
os_free_mem(NULL, msg);
|
os_free_mem(NULL, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2031,8 +2043,10 @@ VOID RtmpDrvAllRFPrint(
|
|||||||
RTMP_STRING *fileName = "RFDump.txt";
|
RTMP_STRING *fileName = "RFDump.txt";
|
||||||
mm_segment_t orig_fs;
|
mm_segment_t orig_fs;
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
orig_fs = get_fs();
|
orig_fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* open file */
|
/* open file */
|
||||||
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
||||||
@ -2048,7 +2062,9 @@ VOID RtmpDrvAllRFPrint(
|
|||||||
}
|
}
|
||||||
filp_close(file_w, NULL);
|
filp_close(file_w, NULL);
|
||||||
}
|
}
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
set_fs(orig_fs);
|
set_fs(orig_fs);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ config MT7603E_SECURITY_IMPROVEMENT_SUPPORT
|
|||||||
bool "WPA2 security improvement support"
|
bool "WPA2 security improvement support"
|
||||||
depends on MT7603E_RLT_AP_SUPPORT
|
depends on MT7603E_RLT_AP_SUPPORT
|
||||||
default n
|
default n
|
||||||
---help---
|
help
|
||||||
WPA2 security improvement support
|
WPA2 security improvement support
|
||||||
|
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ config MT7603E_WPA3_SUPPORT
|
|||||||
select MT7603E_SECURITY_IMPROVEMENT_SUPPORT
|
select MT7603E_SECURITY_IMPROVEMENT_SUPPORT
|
||||||
depends on MT7603E_RLT_AP_SUPPORT
|
depends on MT7603E_RLT_AP_SUPPORT
|
||||||
default n
|
default n
|
||||||
---help---
|
help
|
||||||
WPA3 support
|
WPA3 support
|
||||||
|
|
||||||
config MT7603E_OWE_SUPPORT
|
config MT7603E_OWE_SUPPORT
|
||||||
@ -172,12 +172,12 @@ config MT7603E_OWE_SUPPORT
|
|||||||
select MT7603E_DOT11W_PMF_SUPPORT
|
select MT7603E_DOT11W_PMF_SUPPORT
|
||||||
depends on MT7603E_RLT_AP_SUPPORT
|
depends on MT7603E_RLT_AP_SUPPORT
|
||||||
default n
|
default n
|
||||||
---help---
|
help
|
||||||
Enhanced Open/OWE support
|
Enhanced Open/OWE support
|
||||||
|
|
||||||
config MT7603E_NEW_BW2040_COEXIST_SUPPORT
|
config MT7603E_NEW_BW2040_COEXIST_SUPPORT
|
||||||
bool "New BW20/40 Coexist support"
|
bool "New BW20/40 Coexist support"
|
||||||
depends on MT7603E_RLT_AP_SUPPORT
|
depends on MT7603E_RLT_AP_SUPPORT
|
||||||
default y
|
default y
|
||||||
---help---
|
help
|
||||||
Both Beacon and Radio fallback to BW20 for anti-interference
|
Both Beacon and Radio fallback to BW20 for anti-interference
|
||||||
|
@ -865,10 +865,14 @@ static inline void __RtmpOSFSInfoChange(OS_FS_INFO *pOSFSInfo, BOOLEAN bSet)
|
|||||||
/* pOSFSInfo->fsgid = (int)(current_fsgid()); */
|
/* pOSFSInfo->fsgid = (int)(current_fsgid()); */
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
|
||||||
pOSFSInfo->fs = get_fs();
|
pOSFSInfo->fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
|
||||||
set_fs(pOSFSInfo->fs);
|
set_fs(pOSFSInfo->fs);
|
||||||
|
#endif
|
||||||
#if (KERNEL_VERSION(2, 6, 29) > LINUX_VERSION_CODE)
|
#if (KERNEL_VERSION(2, 6, 29) > LINUX_VERSION_CODE)
|
||||||
current->fsuid = pOSFSInfo->fsuid;
|
current->fsuid = pOSFSInfo->fsuid;
|
||||||
current->fsgid = pOSFSInfo->fsgid;
|
current->fsgid = pOSFSInfo->fsgid;
|
||||||
@ -1925,8 +1929,10 @@ VOID RtmpDrvAllMacPrint(
|
|||||||
if (!msg)
|
if (!msg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
orig_fs = get_fs();
|
orig_fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
/* open file */
|
/* open file */
|
||||||
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
||||||
|
|
||||||
@ -1968,7 +1974,9 @@ VOID RtmpDrvAllMacPrint(
|
|||||||
filp_close(file_w, NULL);
|
filp_close(file_w, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
set_fs(orig_fs);
|
set_fs(orig_fs);
|
||||||
|
#endif
|
||||||
os_free_mem(msg);
|
os_free_mem(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1991,8 +1999,10 @@ VOID RtmpDrvAllE2PPrint(
|
|||||||
if (!msg)
|
if (!msg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
orig_fs = get_fs();
|
orig_fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
/* open file */
|
/* open file */
|
||||||
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
||||||
|
|
||||||
@ -2035,7 +2045,9 @@ VOID RtmpDrvAllE2PPrint(
|
|||||||
filp_close(file_w, NULL);
|
filp_close(file_w, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
set_fs(orig_fs);
|
set_fs(orig_fs);
|
||||||
|
#endif
|
||||||
os_free_mem(msg);
|
os_free_mem(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2049,8 +2061,10 @@ VOID RtmpDrvAllRFPrint(
|
|||||||
RTMP_STRING *fileName = "RFDump.txt";
|
RTMP_STRING *fileName = "RFDump.txt";
|
||||||
mm_segment_t orig_fs;
|
mm_segment_t orig_fs;
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
orig_fs = get_fs();
|
orig_fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
/* open file */
|
/* open file */
|
||||||
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
||||||
|
|
||||||
@ -2081,7 +2095,9 @@ VOID RtmpDrvAllRFPrint(
|
|||||||
filp_close(file_w, NULL);
|
filp_close(file_w, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
set_fs(orig_fs);
|
set_fs(orig_fs);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user