Beispiel #1
0
    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
Beispiel #2
0
 def __init__(self, **kwargs):
     """Constructor."""
     Radio.__init__(self, **kwargs)