Mark 6tunnel as executable, avoids ": /etc/init.d/rcS: line 8: /etc/rc.d/S466tunnel...
[openwrt.git] / package / madwifi / patches / 112-keycache_PR_962.patch
1 Index: madwifi-ng-r2756-20071018/ath/if_ath.c
2 ===================================================================
3 --- madwifi-ng-r2756-20071018.orig/ath/if_ath.c 2007-10-24 06:20:18.005715364 +0200
4 +++ madwifi-ng-r2756-20071018/ath/if_ath.c 2007-10-24 06:20:18.429739529 +0200
5 @@ -5853,7 +5853,8 @@
6 * frame; it'll be dropped where it's not wanted.
7 */
8 if (rs->rs_keyix != HAL_RXKEYIX_INVALID &&
9 - (ni = sc->sc_keyixmap[rs->rs_keyix]) != NULL) {
10 + ((ni = sc->sc_keyixmap[rs->rs_keyix]) != NULL) &&
11 + ieee80211_check_rxnode(ni, (const struct ieee80211_frame_min *) skb->data)) {
12 struct ath_node *an;
13 /*
14 * Fast path: node is present in the key map;
15 Index: madwifi-ng-r2756-20071018/net80211/ieee80211_node.c
16 ===================================================================
17 --- madwifi-ng-r2756-20071018.orig/net80211/ieee80211_node.c 2007-10-24 06:20:16.625636718 +0200
18 +++ madwifi-ng-r2756-20071018/net80211/ieee80211_node.c 2007-10-24 06:20:18.437739986 +0200
19 @@ -1271,8 +1271,6 @@
20 IEEE80211_NODE_TABLE_UNLOCK_IRQ(nt);
21
22 return ni;
23 -#undef IS_PSPOLL
24 -#undef IS_CTL
25 }
26 #ifdef IEEE80211_DEBUG_REFCNT
27 EXPORT_SYMBOL(ieee80211_find_rxnode_debug);
28 @@ -1280,6 +1278,20 @@
29 EXPORT_SYMBOL(ieee80211_find_rxnode);
30 #endif
31
32 +int
33 +ieee80211_check_rxnode(struct ieee80211_node *ni,
34 + const struct ieee80211_frame_min *wh)
35 +{
36 + if (IS_CTL(wh) && !IS_PSPOLL(wh) /*&& !IS_RTS(ah)*/)
37 + return IEEE80211_ADDR_EQ(ni->ni_macaddr, wh->i_addr1);
38 + else
39 + return IEEE80211_ADDR_EQ(ni->ni_macaddr, wh->i_addr2);
40 +}
41 +
42 +EXPORT_SYMBOL(ieee80211_check_rxnode);
43 +#undef IS_PSPOLL
44 +#undef IS_CTL
45 +
46 /*
47 * Return a reference to the appropriate node for sending
48 * a data frame. This handles node discovery in adhoc networks.
49 Index: madwifi-ng-r2756-20071018/net80211/ieee80211_node.h
50 ===================================================================
51 --- madwifi-ng-r2756-20071018.orig/net80211/ieee80211_node.h 2007-10-24 06:20:16.633637175 +0200
52 +++ madwifi-ng-r2756-20071018/net80211/ieee80211_node.h 2007-10-24 06:20:18.441740211 +0200
53 @@ -328,6 +328,8 @@
54 *pni = NULL; /* guard against use */
55 }
56
57 +int ieee80211_check_rxnode(struct ieee80211_node *ni,
58 + const struct ieee80211_frame_min *wh);
59 int ieee80211_add_wds_addr(struct ieee80211_node_table *, struct ieee80211_node *,
60 const u_int8_t *, u_int8_t);
61 void ieee80211_remove_wds_addr(struct ieee80211_node_table *, const u_int8_t *);
This page took 0.051399 seconds and 5 git commands to generate.