Skip to contentSkip to conversation

ath6kl: removed useless ibss_joined notification on ibss_leave

PATCH Superseded Antonio Quartulli 1 participant 2 messages Jan 28, 2014 Atheros ATH6KL wireless driver

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath6kl: removed useless ibss_joined notification on ibss_leave

When leaving an IBSS there is no need to send cfg80211 a fake notification about "having joined a cell with zero BSSID".
This operation has the only effect to create a BSS object that is not going to be used.

---
 drivers/net/wireless/ath/ath6kl/cfg80211.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/ath/ath6kl/cfg80211.c +0 -1
index eba32f5..8ce1ce5 100644
@@ -790,7 +790,6 @@ void ath6kl_cfg80211_connect_event(struct ath6kl_vif *vif, u16 channel,
 	if (nw_type & ADHOC_NETWORK) {
 		ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "ad-hoc %s selected\n",
 			   nw_type & ADHOC_CREATOR ? "creator" : "joiner");
-		cfg80211_ibss_joined(vif->ndev, bssid, GFP_KERNEL);
 		cfg80211_put_bss(ar->wiphy, bss);
 		return;
 	}
Signature · 1 line
1.8.5.3
#1 lore raw
Quoted 17 lines · Antonio Quartulli

When leaving an IBSS there is no need to send cfg80211 a fake notification about "having joined a cell with zero BSSID".
This operation has the only effect to create a BSS object that is not going to be used.

---
 drivers/net/wireless/ath/ath6kl/cfg80211.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/ath/ath6kl/cfg80211.c +0 -0
index eba32f5..8ce1ce5 100644

drivers/net/wireless/ath/ath6kl/cfg80211.c void ath6kl_cfg80211_connect_event(struct ath6kl_vif *vif, u16 channel, · line 792

Quoted 3 lines
drivers/net/wireless/ath/ath6kl/cfg80211.c +0 -0
@@ -790,7 +790,6 @@ void ath6kl_cfg80211_connect_event(struct ath6kl_vif *vif, u16 channel,
 	if (nw_type & ADHOC_NETWORK) {
 		ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "ad-hoc %s selected\n",
 			   nw_type & ADHOC_CREATOR ? "creator" : "joiner");

Of course I messed it up :)
This is not the right place for this change!!!
Will send v2.

Cheers,

Signature · 1 line
Antonio Quartulli