hostapd: update to version 2016-12-15
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 330-nl80211_fix_set_freq.patch
1 --- a/src/drivers/driver_nl80211.c
2 +++ b/src/drivers/driver_nl80211.c
3 @@ -4104,7 +4104,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
7 - msg = nl80211_drv_msg(drv, 0, set_chan ? NL80211_CMD_SET_CHANNEL :
8 + msg = nl80211_bss_msg(bss, 0, set_chan ? NL80211_CMD_SET_CHANNEL :
9 NL80211_CMD_SET_WIPHY);
10 if (!msg || nl80211_put_freq_params(msg, freq) < 0) {
11 nlmsg_free(msg);