madwifi: do not use turbo mode during ap mode autoselection unless specifically requested
[openwrt/svn-archive/archive.git] / package / madwifi / extra / wprobe.spatch
1 @@
2 @@
3 #include "if_athioctl.h"
4 +#include "wprobe.h"
5
6 @@
7 @@
8 struct ath_vap {
9 ...
10 + struct wprobe_iface av_wpif;
11 };
12
13 @@
14 @@
15 struct ath_node {
16 ...
17 + struct wprobe_link an_wplink;
18 + uint8_t an_wplink_active;
19 + struct work_struct an_destroy;
20 u_int16_t an_decomp_index;
21 ...
22 };
23
24 @@
25 @@
26 ath_vap_create(...) {
27 <...
28 + ath_init_wprobe_dev(avp);
29 return vap;
30 ...>
31 }
32
33 @ rule5 @
34 expression vap;
35 @@
36 ath_vap_delete(...) {
37 <...
38 ieee80211_vap_detach(vap);
39 + ath_remove_wprobe_dev(ATH_VAP(vap));
40 ...>
41 }
42
43 @ rule6 @
44 @@
45 static int xchanmode = -1;
46 +
47 +#include "ath_wprobe.c"
48
49
50 @ rule7 @
51 expression sc, ni;
52 @@
53 <...
54 sc->sc_rc->ops->newassoc(sc, ATH_NODE(ni), isnew);
55 + ath_wprobe_node_join(ni->ni_vap, ni);
56 ...>
57
58 @ rule8 @
59 expression ni;
60 expression sc;
61 @@
62 <...
63 sc->sc_rc->ops->node_cleanup(sc, ATH_NODE(ni));
64 + ath_wprobe_node_leave(ni->ni_vap, ni);
65 ...>
66
67 @ rule9 @
68 expression ni;
69 expression rs;
70 @@
71 <...
72 ATH_RSSI_LPF(ATH_NODE(ni)->an_avgrssi, rs->rs_rssi);
73 + ath_node_sample_rx(ni, rs);
74 ...>
75
76 @ rule10 @
77 expression an;
78 expression ts;
79 @@
80 <...
81 ATH_RSSI_LPF(an->an_halstats.ns_avgtxrssi, ts->ts_rssi);
82 + ath_node_sample_tx(&an->an_node, ts, bf->bf_skb->len);
83 ...>
84