Commit 4088c7ca authored by Andrew Lunn's avatar Andrew Lunn Committed by Greg Kroah-Hartman
Browse files

Staging: batman-adv: Always receive when discarding.



It does not matter if the interface is to be activated or not, we must
read the packet in order that it be discarded.

Signed-off-by: default avatarSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent da6b9ba9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1177,8 +1177,7 @@ static int discard_one_packet(struct batman_if *batman_if,
{
	int result = -EAGAIN;

	if ((batman_if->if_active == IF_TO_BE_ACTIVATED)
		&& (batman_if->raw_sock)) {
	if (batman_if->raw_sock) {
			result = receive_raw_packet(batman_if->raw_sock,
						    packet_buff,
						    PACKBUFF_SIZE);