mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 08:44:52 +00:00
There are significant changes between NSS version 11.4.0.5 and 12.1 (12.0.5), that it doesn't really make sense to use it with older firmware (i.e. using mesh releated features). This change will explicitly link building the proper driver and client packages when FW 12.1 or 11.4 is selected, while also backporting patches from 12.4.
15 lines
575 B
Diff
15 lines
575 B
Diff
--- a/nss_stats.c
|
|
+++ b/nss_stats.c
|
|
@@ -388,8 +388,9 @@ size_t nss_stats_print(char *node, char
|
|
*/
|
|
void nss_stats_create_dentry(char *name, const struct file_operations *ops)
|
|
{
|
|
- if (!debugfs_create_file(name, 0400, nss_top_main.stats_dentry, &nss_top_main, ops)) {
|
|
- nss_warning("Failed to create debug entry for subsystem %s\n", name);
|
|
+ if (!debugfs_lookup(name, nss_top_main.stats_dentry))
|
|
+ if (!debugfs_create_file(name, 0400, nss_top_main.stats_dentry, &nss_top_main, ops)) {
|
|
+ nss_warning("Failed to create debug entry for subsystem %s\n", name);
|
|
}
|
|
}
|
|
|