madwifi: replace an implicit memcpy with an explicit one (cosmetic fix)
authorFelix Fietkau <nbd@openwrt.org>
Wed, 9 Sep 2009 00:30:36 +0000 (00:30 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 9 Sep 2009 00:30:36 +0000 (00:30 +0000)
SVN-Revision: 17546

package/madwifi/patches/441-fix_ibss_node_handling.patch

index e4ef20a201298a86d75ff206f1c4173a964a6aa5..5035ae401b21e7e3b3bda137159f196b9f3489ec 100644 (file)
@@ -96,7 +96,7 @@
 -              /* NB: must be after ni_chan is setup */
 -              ieee80211_setup_rates(ni, sp->rates, sp->xrates, IEEE80211_F_DOSORT);
 -
-+              ni->ni_rates = vap->iv_bss->ni_rates;
++              memcpy(&ni->ni_rates, &vap->iv_bss->ni_rates, sizeof(ni->ni_rates));
                if (ic->ic_newassoc != NULL)
                        ic->ic_newassoc(ni, 1);
                /* XXX not right for 802.1x/WPA */