def expectedPacketsPerSecond(ba7):
    """Return the expected number of packets per second we can get from this station.

    Args:
       ba7 (byte): Holds encoded information about the class of station this is. That directly
                   translates into the number of packets per second that get sent.

    Returns:
       int: Number of packets per second.
    """
    tisbId = (ba7 & 0xF0) >> 4

    if tisbId >= 13:
        return 4
    elif tisbId >= 10:
        return 3
    elif tisbId >= 5:
        return 2
    else:
        return 1