def wmode(x: bytes) -> str:
    """ Wireless mode decoding

    Args:
        x: byte encoded representation of wireless mode

    Returns:
        String representation of wireless mode
    """
    if x == b"\x02":
        return "sta"
    elif x == b"\x03":
        return "ap"
    return ""