rtl8366_smi: fix port->flags calculation in rtl8366_get_ports