mac80211: ath9k: fix missing prototypes warnings
Fix following warnings by including the corresponding headers: backports-6.12.6/drivers/net/wireless/ath/ath9k/hsr.c:50:6: error: no previous prototype for 'ath9k_hsr_init' [-Werror=missing-prototypes] 50 | void ath9k_hsr_init(struct ath_hw *ah) | ^~~~~~~~~~~~~~ backports-6.12.6/drivers/net/wireless/ath/ath9k/hsr.c:165:5: error: no previous prototype for 'ath9k_hsr_disable' [-Werror=missing-prototypes] 165 | int ath9k_hsr_disable(struct ath_hw *ah) | ^~~~~~~~~~~~~~~~~ backports-6.12.6/drivers/net/wireless/ath/ath9k/hsr.c:177:5: error: no previous prototype for 'ath9k_hsr_enable' [-Werror=missing-prototypes] 177 | int ath9k_hsr_enable(struct ath_hw *ah, int bw, int fq) | ^~~~~~~~~~~~~~~~ backports-6.12.6/drivers/net/wireless/ath/ath9k/hsr.c:234:5: error: no previous prototype for 'ath9k_hsr_status' [-Werror=missing-prototypes] 234 | int ath9k_hsr_status(struct ath_hw *ah) | ^~~~~~~~~~~~~~~~ Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18637 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
2260afa381
commit
6deb2a03ba
1 changed files with 5 additions and 2 deletions
|
@ -30,7 +30,7 @@
|
||||||
ath_update_survey_stats(sc);
|
ath_update_survey_stats(sc);
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/net/wireless/ath/ath9k/hsr.c
|
+++ b/drivers/net/wireless/ath/ath9k/hsr.c
|
||||||
@@ -0,0 +1,247 @@
|
@@ -0,0 +1,248 @@
|
||||||
+/*
|
+/*
|
||||||
+ *
|
+ *
|
||||||
+ * The MIT License (MIT)
|
+ * The MIT License (MIT)
|
||||||
|
@ -68,6 +68,7 @@
|
||||||
+
|
+
|
||||||
+#include "hw.h"
|
+#include "hw.h"
|
||||||
+#include "ath9k.h"
|
+#include "ath9k.h"
|
||||||
|
+#include "hsr.h"
|
||||||
+
|
+
|
||||||
+#define HSR_GPIO_CSN 8
|
+#define HSR_GPIO_CSN 8
|
||||||
+#define HSR_GPIO_CLK 6
|
+#define HSR_GPIO_CLK 6
|
||||||
|
@ -280,7 +281,7 @@
|
||||||
+}
|
+}
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/net/wireless/ath/ath9k/hsr.h
|
+++ b/drivers/net/wireless/ath/ath9k/hsr.h
|
||||||
@@ -0,0 +1,48 @@
|
@@ -0,0 +1,50 @@
|
||||||
+/*
|
+/*
|
||||||
+ * The MIT License (MIT)
|
+ * The MIT License (MIT)
|
||||||
+ *
|
+ *
|
||||||
|
@ -308,6 +309,8 @@
|
||||||
+#ifndef HSR_H
|
+#ifndef HSR_H
|
||||||
+#define HSR_H
|
+#define HSR_H
|
||||||
+
|
+
|
||||||
|
+ struct ath_hw;
|
||||||
|
+
|
||||||
+#ifdef CPTCFG_ATH9K_UBNTHSR
|
+#ifdef CPTCFG_ATH9K_UBNTHSR
|
||||||
+
|
+
|
||||||
+void ath9k_hsr_init(struct ath_hw *ah);
|
+void ath9k_hsr_init(struct ath_hw *ah);
|
||||||
|
|
Loading…
Reference in a new issue