2007-07-12 00:13:50 +03:00
|
|
|
Index: madwifi-ng-r2568-20070710/ath/if_ath.c
|
2007-06-04 14:25:53 +03:00
|
|
|
===================================================================
|
2007-07-13 12:18:45 +03:00
|
|
|
--- madwifi-ng-r2568-20070710.orig/ath/if_ath.c 2007-07-13 11:18:16.181218662 +0200
|
|
|
|
+++ madwifi-ng-r2568-20070710/ath/if_ath.c 2007-07-13 11:18:16.669246471 +0200
|
2007-07-12 00:13:50 +03:00
|
|
|
@@ -5732,7 +5732,8 @@
|
2007-05-13 19:24:11 +03:00
|
|
|
* frame; it'll be dropped where it's not wanted.
|
|
|
|
*/
|
2007-05-21 09:25:34 +03:00
|
|
|
if (rs->rs_keyix != HAL_RXKEYIX_INVALID &&
|
|
|
|
- (ni = sc->sc_keyixmap[rs->rs_keyix]) != NULL) {
|
|
|
|
+ ((ni = sc->sc_keyixmap[rs->rs_keyix]) != NULL) &&
|
|
|
|
+ ieee80211_check_rxnode(ni, (const struct ieee80211_frame_min *) skb->data)) {
|
2007-05-13 19:24:11 +03:00
|
|
|
struct ath_node *an;
|
|
|
|
/*
|
|
|
|
* Fast path: node is present in the key map;
|
2007-07-12 00:13:50 +03:00
|
|
|
Index: madwifi-ng-r2568-20070710/net80211/ieee80211_node.c
|
2007-06-04 14:25:53 +03:00
|
|
|
===================================================================
|
2007-07-13 12:18:45 +03:00
|
|
|
--- madwifi-ng-r2568-20070710.orig/net80211/ieee80211_node.c 2007-07-13 11:18:14.117101033 +0200
|
|
|
|
+++ madwifi-ng-r2568-20070710/net80211/ieee80211_node.c 2007-07-13 11:18:16.669246471 +0200
|
2007-07-04 00:03:58 +03:00
|
|
|
@@ -1271,8 +1271,6 @@
|
2007-05-13 19:24:11 +03:00
|
|
|
IEEE80211_NODE_TABLE_UNLOCK_IRQ(nt);
|
|
|
|
|
|
|
|
return ni;
|
|
|
|
-#undef IS_PSPOLL
|
|
|
|
-#undef IS_CTL
|
|
|
|
}
|
|
|
|
#ifdef IEEE80211_DEBUG_REFCNT
|
|
|
|
EXPORT_SYMBOL(ieee80211_find_rxnode_debug);
|
2007-07-04 00:03:58 +03:00
|
|
|
@@ -1280,6 +1278,20 @@
|
2007-05-13 19:24:11 +03:00
|
|
|
EXPORT_SYMBOL(ieee80211_find_rxnode);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+int
|
|
|
|
+ieee80211_check_rxnode(struct ieee80211_node *ni,
|
|
|
|
+ const struct ieee80211_frame_min *wh)
|
|
|
|
+{
|
|
|
|
+ if (IS_CTL(wh) && !IS_PSPOLL(wh) /*&& !IS_RTS(ah)*/)
|
|
|
|
+ return IEEE80211_ADDR_EQ(ni->ni_macaddr, wh->i_addr1);
|
|
|
|
+ else
|
|
|
|
+ return IEEE80211_ADDR_EQ(ni->ni_macaddr, wh->i_addr2);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+EXPORT_SYMBOL(ieee80211_check_rxnode);
|
|
|
|
+#undef IS_PSPOLL
|
|
|
|
+#undef IS_CTL
|
|
|
|
+
|
|
|
|
/*
|
|
|
|
* Return a reference to the appropriate node for sending
|
|
|
|
* a data frame. This handles node discovery in adhoc networks.
|
2007-07-12 00:13:50 +03:00
|
|
|
Index: madwifi-ng-r2568-20070710/net80211/ieee80211_node.h
|
2007-06-04 14:25:53 +03:00
|
|
|
===================================================================
|
2007-07-13 12:18:45 +03:00
|
|
|
--- madwifi-ng-r2568-20070710.orig/net80211/ieee80211_node.h 2007-07-13 11:18:14.125101490 +0200
|
|
|
|
+++ madwifi-ng-r2568-20070710/net80211/ieee80211_node.h 2007-07-13 11:18:16.697248068 +0200
|
2007-07-04 00:03:58 +03:00
|
|
|
@@ -328,6 +328,8 @@
|
2007-05-13 19:24:11 +03:00
|
|
|
*pni = NULL; /* guard against use */
|
|
|
|
}
|
|
|
|
|
|
|
|
+int ieee80211_check_rxnode(struct ieee80211_node *ni,
|
|
|
|
+ const struct ieee80211_frame_min *wh);
|
|
|
|
int ieee80211_add_wds_addr(struct ieee80211_node_table *, struct ieee80211_node *,
|
|
|
|
const u_int8_t *, u_int8_t);
|
|
|
|
void ieee80211_remove_wds_addr(struct ieee80211_node_table *, const u_int8_t *);
|