[package] madwifi cannot be compiled on cobalt which has a different mips cpu abi
[openwrt.git] / package / madwifi / patches / 435-ibss_neighbor_fix.patch
1 --- a/net80211/ieee80211_input.c
2 +++ b/net80211/ieee80211_input.c
3 @@ -313,7 +313,7 @@ ieee80211_input(struct ieee80211vap * va
4                         if (type == IEEE80211_FC0_TYPE_DATA && ni == vap->iv_bss &&
5                                         !IEEE80211_ADDR_EQ(vap->iv_bss->ni_macaddr, wh->i_addr2)) {
6                                 /* Try to find sender in local node table. */
7 -                               ni = ieee80211_find_node(vap->iv_bss->ni_table, wh->i_addr2);
8 +                               ni = ieee80211_find_node(&ic->ic_sta, wh->i_addr2);
9                                 if (ni == NULL) {
10                                         /*
11                                          * Fake up a node for this newly discovered