mac0211: add a helper function for fixing up tx status rates