Wave-mean flow interactions in the upper atmosphere