def wifi_mode(code):
    """
    returns text of mode code
    """
    if code==1:
        return 'IEEE 802.11b'
    if code==2:
        return 'IEEE 802.11g'
    if code==3:
        return 'IEEE 802.11n'
    else:
        return 'unknown'