|
@@ -260,6 +260,9 @@ static void batadv_send_outstanding_bcast_packet(struct work_struct *work)
|
|
|
if (hard_iface->soft_iface != soft_iface)
|
|
|
continue;
|
|
|
|
|
|
+ if (forw_packet->num_packets >= hard_iface->num_bcasts)
|
|
|
+ continue;
|
|
|
+
|
|
|
/* send a copy of the saved skb */
|
|
|
skb1 = skb_clone(forw_packet->skb, GFP_ATOMIC);
|
|
|
if (skb1)
|
|
@@ -271,7 +274,7 @@ static void batadv_send_outstanding_bcast_packet(struct work_struct *work)
|
|
|
forw_packet->num_packets++;
|
|
|
|
|
|
/* if we still have some more bcasts to send */
|
|
|
- if (forw_packet->num_packets < 3) {
|
|
|
+ if (forw_packet->num_packets < BATADV_NUM_BCASTS_MAX) {
|
|
|
_batadv_add_bcast_packet_to_list(bat_priv, forw_packet,
|
|
|
msecs_to_jiffies(5));
|
|
|
return;
|