madwifi: replace an implicit memcpy with an explicit one (cosmetic fix)

SVN-Revision: 17546
master
Felix Fietkau 15 years ago
parent d5cc8ea44b
commit d71228f092
  1. 2
      package/madwifi/patches/441-fix_ibss_node_handling.patch

@ -96,7 +96,7 @@
- /* NB: must be after ni_chan is setup */ - /* NB: must be after ni_chan is setup */
- ieee80211_setup_rates(ni, sp->rates, sp->xrates, IEEE80211_F_DOSORT); - 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) if (ic->ic_newassoc != NULL)
ic->ic_newassoc(ni, 1); ic->ic_newassoc(ni, 1);
/* XXX not right for 802.1x/WPA */ /* XXX not right for 802.1x/WPA */

Loading…
Cancel
Save