mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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:
parent
cba352a4c1
commit
783d07c1bf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue