def set_recvanno(self, p): """Overloaded to modify noisepower with noise figure. :return: Modified packet `p`. This method adds the `DOT11A_NOISEFIGURE` to the noisepower specified by `Radio`. """ r = Radio.set_recvanno(self, p) if ANNO.supports(r, "noisepower"): noisepower = r.getanno("noisepower") noisepower += DOT11A_NOISEFIGURE r.setanno("noisepower", noisepower) return r
def __init__(self, **kwargs): """Constructor.""" Radio.__init__(self, **kwargs)