mac80211: mesh: move some code to make it static