Skip to contentSkip to conversation

ath9k_htc: Enable AP mode

PATCH New Sujith 2 participants 3 messages Jan 21, 2011 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore

Sujith

author
#0 lore raw

PATCH 23/33 ath9k_htc: Enable AP mode

From: Sujith Manoharan <[email protected]>

---
 drivers/net/wireless/ath/ath9k/htc_drv_init.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath9k/htc_drv_init.c +2 -1
index dc96c06..b4ae719 100644
@@ -753,7 +753,8 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
 
 	hw->wiphy->interface_modes =
 		BIT(NL80211_IFTYPE_STATION) |
-		BIT(NL80211_IFTYPE_ADHOC);
+		BIT(NL80211_IFTYPE_ADHOC) |
+		BIT(NL80211_IFTYPE_AP);
 
 	hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
 
Signature · 1 line
1.7.3.5
#1 lore raw

PATCH 23/33 ath9k_htc: Enable AP mode

Quoted 12 lines · Sujith

From: Sujith Manoharan <[email protected]>

---
 drivers/net/wireless/ath/ath9k/htc_drv_init.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath9k/htc_drv_init.c +0 -0
index dc96c06..b4ae719 100644

drivers/net/wireless/ath/ath9k/htc_drv_init.c static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv, · line 757

Quoted 6 lines
drivers/net/wireless/ath/ath9k/htc_drv_init.c +2 -1
@@ -753,7 +753,8 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
 
 	hw->wiphy->interface_modes =
 		BIT(NL80211_IFTYPE_STATION) |
-		BIT(NL80211_IFTYPE_ADHOC);
+		BIT(NL80211_IFTYPE_ADHOC) |
+		BIT(NL80211_IFTYPE_AP);

It'd be kinda nice if that could be made dependent on firmware capability bits or version since otherwise everybody will think they have it ... and it will not work?

johannes

author
#2 lore raw

PATCH 23/33 ath9k_htc: Enable AP mode

Quoted 14 lines · Johannes Berg
Quoted 13 lines · Sujith

From: Sujith Manoharan <[email protected]>

---
 drivers/net/wireless/ath/ath9k/htc_drv_init.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath9k/htc_drv_init.c +0 -0
index dc96c06..b4ae719 100644
@@ -753,7 +753,8 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
 
Quoted 9 lines

drivers/net/wireless/ath/ath9k/htc_drv_init.c static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv, · line 757

Quoted 5 lines
drivers/net/wireless/ath/ath9k/htc_drv_init.c +2 -1
 	hw->wiphy->interface_modes =
 		BIT(NL80211_IFTYPE_STATION) |
-		BIT(NL80211_IFTYPE_ADHOC);
+		BIT(NL80211_IFTYPE_ADHOC) |
+		BIT(NL80211_IFTYPE_AP);

It'd be kinda nice if that could be made dependent on firmware capability bits or version since otherwise everybody will think they have it ... and it will not work?

Well, the current firmware has no version mechanism and this series requires the new FW for non-AP modes too. I am aware that breaking compatibilty with existing FW is frowned upon, but unfortunately this is required since the command layout has been cleaned up. I'll add a check to bail out at driver load time when the old FW is used.

Sujith