소스 검색

ath9k: move struct ath_beacon_config to common

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Oleksij Rempel 11 년 전
부모
커밋
fd0ab79335
2개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 9
      drivers/net/wireless/ath/ath9k/ath9k.h
  2. 9 0
      drivers/net/wireless/ath/ath9k/common.h

+ 0 - 9
drivers/net/wireless/ath/ath9k/ath9k.h

@@ -408,15 +408,6 @@ void ath9k_calculate_iter_data(struct ieee80211_hw *hw,
 #define TSF_TO_TU(_h,_l) \
 #define TSF_TO_TU(_h,_l) \
 	((((u32)(_h)) << 22) | (((u32)(_l)) >> 10))
 	((((u32)(_h)) << 22) | (((u32)(_l)) >> 10))
 
 
-struct ath_beacon_config {
-	int beacon_interval;
-	u16 dtim_period;
-	u16 bmiss_timeout;
-	u8 dtim_count;
-	bool enable_beacon;
-	bool ibss_creator;
-};
-
 struct ath_beacon {
 struct ath_beacon {
 	enum {
 	enum {
 		OK,		/* no change needed */
 		OK,		/* no change needed */

+ 9 - 0
drivers/net/wireless/ath/ath9k/common.h

@@ -44,6 +44,15 @@
 #define ATH_EP_RND(x, mul) 						\
 #define ATH_EP_RND(x, mul) 						\
 	(((x) + ((mul)/2)) / (mul))
 	(((x) + ((mul)/2)) / (mul))
 
 
+struct ath_beacon_config {
+	int beacon_interval;
+	u16 dtim_period;
+	u16 bmiss_timeout;
+	u8 dtim_count;
+	bool enable_beacon;
+	bool ibss_creator;
+};
+
 bool ath9k_cmn_rx_accept(struct ath_common *common,
 bool ath9k_cmn_rx_accept(struct ath_common *common,
 			 struct ieee80211_hdr *hdr,
 			 struct ieee80211_hdr *hdr,
 			 struct ieee80211_rx_status *rxs,
 			 struct ieee80211_rx_status *rxs,