linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: Remove deprecated sta_notify commands
@ 2010-05-19  6:02 Sujith
  2010-05-19  7:55 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Sujith @ 2010-05-19  6:02 UTC (permalink / raw)
  To: linville; +Cc: johannes, linux-wireless

STA_NOTIFY_ADD and STA_NOTIFY_REMOVE have no users anymore,
and station addition/removal are indicated to drivers
using sta_add() and sta_remove(), which can sleep.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
---
 include/net/mac80211.h    |    6 +-----
 net/mac80211/driver-ops.h |    6 ------
 2 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 389e86a..981d9b4 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -881,16 +881,12 @@ struct ieee80211_sta {
  * enum sta_notify_cmd - sta notify command
  *
  * Used with the sta_notify() callback in &struct ieee80211_ops, this
- * indicates addition and removal of a station to station table,
- * or if a associated station made a power state transition.
+ * indicates if an associated station made a power state transition.
  *
- * @STA_NOTIFY_ADD: (DEPRECATED) a station was added to the station table
- * @STA_NOTIFY_REMOVE: (DEPRECATED) a station being removed from the station table
  * @STA_NOTIFY_SLEEP: a station is now sleeping
  * @STA_NOTIFY_AWAKE: a sleeping station woke up
  */
 enum sta_notify_cmd {
-	STA_NOTIFY_ADD, STA_NOTIFY_REMOVE,
 	STA_NOTIFY_SLEEP, STA_NOTIFY_AWAKE,
 };
 
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index 5662bb5..14a3b3c 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -254,9 +254,6 @@ static inline int drv_sta_add(struct ieee80211_local *local,
 
 	if (local->ops->sta_add)
 		ret = local->ops->sta_add(&local->hw, &sdata->vif, sta);
-	else if (local->ops->sta_notify)
-		local->ops->sta_notify(&local->hw, &sdata->vif,
-					STA_NOTIFY_ADD, sta);
 
 	trace_drv_sta_add(local, sdata, sta, ret);
 
@@ -271,9 +268,6 @@ static inline void drv_sta_remove(struct ieee80211_local *local,
 
 	if (local->ops->sta_remove)
 		local->ops->sta_remove(&local->hw, &sdata->vif, sta);
-	else if (local->ops->sta_notify)
-		local->ops->sta_notify(&local->hw, &sdata->vif,
-					STA_NOTIFY_REMOVE, sta);
 
 	trace_drv_sta_remove(local, sdata, sta);
 }
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mac80211: Remove deprecated sta_notify commands
  2010-05-19  6:02 [PATCH] mac80211: Remove deprecated sta_notify commands Sujith
@ 2010-05-19  7:55 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2010-05-19  7:55 UTC (permalink / raw)
  To: Sujith; +Cc: linville, linux-wireless

On Wed, 2010-05-19 at 11:32 +0530, Sujith wrote:
> STA_NOTIFY_ADD and STA_NOTIFY_REMOVE have no users anymore,
> and station addition/removal are indicated to drivers
> using sta_add() and sta_remove(), which can sleep.

Thanks!

Acked-by: Johannes Berg <johannes@sipsolutions.net>

> Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
> ---
>  include/net/mac80211.h    |    6 +-----
>  net/mac80211/driver-ops.h |    6 ------
>  2 files changed, 1 insertions(+), 11 deletions(-)
> 
> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> index 389e86a..981d9b4 100644
> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
> @@ -881,16 +881,12 @@ struct ieee80211_sta {
>   * enum sta_notify_cmd - sta notify command
>   *
>   * Used with the sta_notify() callback in &struct ieee80211_ops, this
> - * indicates addition and removal of a station to station table,
> - * or if a associated station made a power state transition.
> + * indicates if an associated station made a power state transition.
>   *
> - * @STA_NOTIFY_ADD: (DEPRECATED) a station was added to the station table
> - * @STA_NOTIFY_REMOVE: (DEPRECATED) a station being removed from the station table
>   * @STA_NOTIFY_SLEEP: a station is now sleeping
>   * @STA_NOTIFY_AWAKE: a sleeping station woke up
>   */
>  enum sta_notify_cmd {
> -	STA_NOTIFY_ADD, STA_NOTIFY_REMOVE,
>  	STA_NOTIFY_SLEEP, STA_NOTIFY_AWAKE,
>  };
>  
> diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
> index 5662bb5..14a3b3c 100644
> --- a/net/mac80211/driver-ops.h
> +++ b/net/mac80211/driver-ops.h
> @@ -254,9 +254,6 @@ static inline int drv_sta_add(struct ieee80211_local *local,
>  
>  	if (local->ops->sta_add)
>  		ret = local->ops->sta_add(&local->hw, &sdata->vif, sta);
> -	else if (local->ops->sta_notify)
> -		local->ops->sta_notify(&local->hw, &sdata->vif,
> -					STA_NOTIFY_ADD, sta);
>  
>  	trace_drv_sta_add(local, sdata, sta, ret);
>  
> @@ -271,9 +268,6 @@ static inline void drv_sta_remove(struct ieee80211_local *local,
>  
>  	if (local->ops->sta_remove)
>  		local->ops->sta_remove(&local->hw, &sdata->vif, sta);
> -	else if (local->ops->sta_notify)
> -		local->ops->sta_notify(&local->hw, &sdata->vif,
> -					STA_NOTIFY_REMOVE, sta);
>  
>  	trace_drv_sta_remove(local, sdata, sta);
>  }



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-19  7:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-19  6:02 [PATCH] mac80211: Remove deprecated sta_notify commands Sujith
2010-05-19  7:55 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).