Effects of current driven instabilities on the ion and electron temperatures in the topside ionosphere