Use clone instead of copy because the contents of the frame may be modified.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3130 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mtaylor 2008-01-15 23:46:22 +00:00
parent d2db9e2fc0
commit f2bbcd9fa2

View File

@ -283,7 +283,7 @@ ieee80211_hardstart(struct sk_buff *skb, struct net_device *dev)
* normal vap. */
if (vap->iv_xrvap && (ni == vap->iv_bss) &&
vap->iv_xrvap->iv_sta_assoc) {
struct sk_buff *skb1 = skb_clone(skb, GFP_ATOMIC);
struct sk_buff *skb1 = skb_copy(skb, GFP_ATOMIC);
if (skb1) {
memset(SKB_CB(skb1), 0, sizeof(struct ieee80211_cb));
#ifdef IEEE80211_DEBUG_REFCNT