ar71xx: build images for the AP121 boards
[openwrt/staging/dedeckeh.git] / package / mac80211 / patches / 581-ath9k_remove_get_desc_link.patch
1 --- a/drivers/net/wireless/ath/ath9k/ar9002_mac.c
2 +++ b/drivers/net/wireless/ath/ath9k/ar9002_mac.c
3 @@ -28,11 +28,6 @@ static void ar9002_hw_set_desc_link(void
4 ((struct ath_desc*) ds)->ds_link = ds_link;
5 }
6
7 -static void ar9002_hw_get_desc_link(void *ds, u32 **ds_link)
8 -{
9 - *ds_link = &((struct ath_desc *)ds)->ds_link;
10 -}
11 -
12 static bool ar9002_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked)
13 {
14 u32 isr = 0;
15 @@ -437,7 +432,6 @@ void ar9002_hw_attach_mac_ops(struct ath
16
17 ops->rx_enable = ar9002_hw_rx_enable;
18 ops->set_desc_link = ar9002_hw_set_desc_link;
19 - ops->get_desc_link = ar9002_hw_get_desc_link;
20 ops->get_isr = ar9002_hw_get_isr;
21 ops->fill_txdesc = ar9002_hw_fill_txdesc;
22 ops->proc_txdesc = ar9002_hw_proc_txdesc;
23 --- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c
24 +++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
25 @@ -43,13 +43,6 @@ static void ar9003_hw_set_desc_link(void
26 ads->ctl10 |= ar9003_calc_ptr_chksum(ads);
27 }
28
29 -static void ar9003_hw_get_desc_link(void *ds, u32 **ds_link)
30 -{
31 - struct ar9003_txc *ads = ds;
32 -
33 - *ds_link = &ads->link;
34 -}
35 -
36 static bool ar9003_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked)
37 {
38 u32 isr = 0;
39 @@ -498,7 +491,6 @@ void ar9003_hw_attach_mac_ops(struct ath
40
41 ops->rx_enable = ar9003_hw_rx_enable;
42 ops->set_desc_link = ar9003_hw_set_desc_link;
43 - ops->get_desc_link = ar9003_hw_get_desc_link;
44 ops->get_isr = ar9003_hw_get_isr;
45 ops->fill_txdesc = ar9003_hw_fill_txdesc;
46 ops->proc_txdesc = ar9003_hw_proc_txdesc;
47 --- a/drivers/net/wireless/ath/ath9k/hw-ops.h
48 +++ b/drivers/net/wireless/ath/ath9k/hw-ops.h
49 @@ -39,11 +39,6 @@ static inline void ath9k_hw_set_desc_lin
50 ath9k_hw_ops(ah)->set_desc_link(ds, link);
51 }
52
53 -static inline void ath9k_hw_get_desc_link(struct ath_hw *ah, void *ds,
54 - u32 **link)
55 -{
56 - ath9k_hw_ops(ah)->get_desc_link(ds, link);
57 -}
58 static inline bool ath9k_hw_calibrate(struct ath_hw *ah,
59 struct ath9k_channel *chan,
60 u8 rxchainmask,
61 --- a/drivers/net/wireless/ath/ath9k/hw.h
62 +++ b/drivers/net/wireless/ath/ath9k/hw.h
63 @@ -603,7 +603,6 @@ struct ath_hw_ops {
64 int power_off);
65 void (*rx_enable)(struct ath_hw *ah);
66 void (*set_desc_link)(void *ds, u32 link);
67 - void (*get_desc_link)(void *ds, u32 **link);
68 bool (*calibrate)(struct ath_hw *ah,
69 struct ath9k_channel *chan,
70 u8 rxchainmask,