def send_data(self, data): """Additional processing for outgoing DATA.""" DCF.send_data(self, data) dst = data.addr1 rate = self.ra.get_rate(dst) # allow fixed rate for broadcast packets fixedrate = data.hasanno('phy-fixed-rate') if (data.addr1==self.broadcast) and fixedrate: rate = data.getanno('phy-fixed-rate') data.setanno('phy-rate', rate)
def send_data(self, data): """Additional processing for outgoing DATA.""" DCF.send_data(self, data) dst = data.addr1 rate = self.ra.get_rate(dst) data.setanno('phy-rate', rate)