title: All nodes that are in Range are not receiving Message in LEACH
body: <p>when I send Broadcast notification to other nodes some nodes are not receiving the notification. below is code. Any help is appreciated Thanks</p>
  
  <pre><code>int clusterCode;
  int numCodesAvail;
  
  numCodesAvail = 2 * config_.spreading_ - 1;
  
  
  currentCH_ = sensor_node_-&gt;nodeid();
  currentCHMAC_ = MAC_BROADCAST;
  
  clusterCode = (mac_-&gt;myADVnum() % numCodesAvail) + 1;
  
  setCode(clusterCode);
  
  wakeUp();
  
  send(
      MAC_BROADCAST,
      LINK_BROADCAST,
      LEACH_ADV_CH,
      (char *) (&amp;code_),
      sizeof(currentCH_),
      BYTES_ID,
      config_.maxDist_,
      0);
  
  listenJOINREQ_ = true;
  
  clusterNodes_.clear();
  </code></pre>
  
  <p>This works fine in first round but in second some of the nodes are not receiving  the notification.</p>