update to the latest madwifi snapshot
[openwrt.git] / package / madwifi / patches / 125-plug_memleak.patch
1 Index: madwifi-ng-r2525-20070630/net80211/ieee80211_input.c
2 ===================================================================
3 --- madwifi-ng-r2525-20070630.orig/net80211/ieee80211_input.c   2007-07-03 23:02:31.005981500 +0200
4 +++ madwifi-ng-r2525-20070630/net80211/ieee80211_input.c        2007-07-03 23:02:31.926039000 +0200
5 @@ -2873,7 +2873,7 @@
6                         ieee80211_add_scan(vap, &scan, wh, subtype, rssi, rtsf);
7                         return;
8                 }
9 -               if (scan.capinfo & IEEE80211_CAPINFO_IBSS) {
10 +               if ((vap->iv_opmode == IEEE80211_M_IBSS) && (scan.capinfo & IEEE80211_CAPINFO_IBSS)) {
11                         if (!IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) {
12                                 /* Create a new entry in the neighbor table. */
13                                 ni = ieee80211_add_neighbor(vap, wh, &scan);