[PATCH 6.12 127/369] wifi: nl80211: Set num_sub_specs before looping through sub_specs