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

Commit 5b74eda7 authored by Hong Liu's avatar Hong Liu Committed by James Ketrenos
Browse files

Fixed problem with not being able to decrypt/encrypt broadcast packets.

parent c4cfe567
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -409,7 +409,8 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
		return 1;
	}

	if (is_multicast_ether_addr(hdr->addr1) ? ieee->host_mc_decrypt :
	if ((is_multicast_ether_addr(hdr->addr1) ||
	     is_broadcast_ether_addr(hdr->addr2)) ? ieee->host_mc_decrypt :
	    ieee->host_decrypt) {
		int idx = 0;
		if (skb->len >= hdrlen + 3)
+2 −1
Original line number Diff line number Diff line
@@ -338,7 +338,8 @@ int ieee80211_xmit(struct sk_buff *skb, struct net_device *dev)
	if (host_encrypt || ieee->host_open_frag) {
		/* Determine fragmentation size based on destination (multicast
		 * and broadcast are not fragmented) */
		if (is_multicast_ether_addr(dest))
		if (is_multicast_ether_addr(dest) ||
		    is_broadcast_ether_addr(dest))
			frag_size = MAX_FRAG_THRESHOLD;
		else
			frag_size = ieee->fts;