330-nl80211_fix_set_freq.patch 502 B

1234567891011
  1. --- a/src/drivers/driver_nl80211.c
  2. +++ b/src/drivers/driver_nl80211.c
  3. @@ -3795,7 +3795,7 @@ static int nl80211_set_channel(struct i8
  4. freq->freq, freq->ht_enabled, freq->vht_enabled,
  5. freq->bandwidth, freq->center_freq1, freq->center_freq2);
  6. - msg = nl80211_drv_msg(drv, 0, set_chan ? NL80211_CMD_SET_CHANNEL :
  7. + msg = nl80211_bss_msg(bss, 0, set_chan ? NL80211_CMD_SET_CHANNEL :
  8. NL80211_CMD_SET_WIPHY);
  9. if (!msg || nl80211_put_freq_params(msg, freq) < 0) {
  10. nlmsg_free(msg);