Sta index

sta_index is receive from both config_bss and config_sta.
Use sta_index in the right place.