[802.11] Fix a use-after-free