[master/pending] ath10k: assign new interfaces type to parent type
diff mbox series

Message ID 20190712100846.11158-1-isaac.hermida@digi.com
State New
Headers show
  • [master/pending] ath10k: assign new interfaces type to parent type
Related show

Commit Message

Isaac Hermida July 12, 2019, 10:08 a.m. UTC
This is needed to have the AP mode working for SDIO.
Tested with lastest master/pending code on a QCA6564 chip with firmware

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
 drivers/net/wireless/ath/ath10k/mac.c | 3 +++
 1 file changed, 3 insertions(+)

diff mbox series

diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index e43a566eef77..2c4f8da98b24 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -5150,6 +5150,9 @@  static int ath10k_add_interface(struct ieee80211_hw *hw,
 	arvif->ar = ar;
 	arvif->vif = vif;
+	// assign type of the new interface to the parent type (SDIO, PCI, etc)
+	ar->dev_type = arvif->ar->bus_param.dev_type;
 	INIT_WORK(&arvif->ap_csa_work, ath10k_mac_vif_ap_csa_work);