staging: wilc1000: fix bug on p2p connection

In case of action frame, size -7 is correct, but in this case, size should be
used as it is.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Glen Lee 2016-02-04 18:15:26 +09:00 committed by Greg Kroah-Hartman
parent cba352a4c1
commit 783d07c1bf
1 changed files with 1 additions and 1 deletions

View File

@ -1728,7 +1728,7 @@ void WILC_WFI_p2p_rx (struct net_device *dev, u8 *buff, u32 size)
}
}
cfg80211_rx_mgmt(priv->wdev, s32Freq, 0, buff, size - 7, 0);
cfg80211_rx_mgmt(priv->wdev, s32Freq, 0, buff, size, 0);
}
}