ath6kl: removed useless ibss_joined notification on ibss_leave
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.
Cc Kalle Valo <[email protected]>
Signed-off-by Antonio Quartulli <[email protected]>
--- drivers/net/wireless/ath/ath6kl/cfg80211.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireless/ath/ath6kl/cfg80211.c +0 -1
@@ -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
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.Cc Kalle Valo <[email protected]>Signed-off-by Antonio Quartulli <[email protected]>--- drivers/net/wireless/ath/ath6kl/cfg80211.c | 1 - 1 file changed, 1 deletion(-)drivers/net/wireless/ath/ath6kl/cfg80211.c +0
-0
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