22 lines
862 B
Diff
22 lines
862 B
Diff
From 7fafab3b02af33cb9cbb4c1ea7de83cfc6161a4a Mon Sep 17 00:00:00 2001
|
|
From: Patrick Walther <patrick.walther@netmodule.com>
|
|
Date: Fri, 24 Jul 2020 14:41:09 +0200
|
|
|
|
---
|
|
src/drivers/driver_nl80211.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
|
|
index de6a6c2f6..d2b30a0b8 100644
|
|
--- a/src/drivers/driver_nl80211.c
|
|
+++ b/src/drivers/driver_nl80211.c
|
|
@@ -5011,7 +5011,7 @@ static int nl80211_set_channel(struct i802_bss *bss,
|
|
freq->he_enabled, freq->eht_enabled, freq->bandwidth,
|
|
freq->center_freq1, freq->center_freq2);
|
|
|
|
- msg = nl80211_drv_msg(drv, 0, set_chan ? NL80211_CMD_SET_CHANNEL :
|
|
+ msg = nl80211_bss_msg(bss, 0, set_chan ? NL80211_CMD_SET_CHANNEL :
|
|
NL80211_CMD_SET_WIPHY);
|
|
if (!msg || nl80211_put_freq_params(msg, freq) < 0) {
|
|
nlmsg_free(msg);
|