Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 783d07c1 authored by Glen Lee's avatar Glen Lee Committed by Greg Kroah-Hartman
Browse files

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: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cba352a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}
}