hostapd: adjust patches to work with git am
[openwrt/staging/xback.git] / package / network / services / hostapd / patches / 330-nl80211_fix_set_freq.patch
1 From ee68734929edb30f90a95bc3150038333b345476 Mon Sep 17 00:00:00 2001
2 From: Felix Fietkau <nbd@openwrt.org>
3 Date: Sun, 30 Jun 2013 21:01:13 +0000
4 Subject: [PATCH] nl80211_fix_set_freq.patch
5
6 --- a/src/drivers/driver_nl80211.c
7 +++ b/src/drivers/driver_nl80211.c
8 @@ -5483,7 +5483,7 @@ static int nl80211_set_channel(struct i8
9 freq->he_enabled, freq->eht_enabled, freq->bandwidth,
10 freq->center_freq1, freq->center_freq2);
11
12 - msg = nl80211_drv_msg(drv, 0, set_chan ? NL80211_CMD_SET_CHANNEL :
13 + msg = nl80211_bss_msg(bss, 0, set_chan ? NL80211_CMD_SET_CHANNEL :
14 NL80211_CMD_SET_WIPHY);
15 if (!msg || nl80211_put_freq_params(msg, freq) < 0) {
16 nlmsg_free(msg);