Search Linux Wireless

[RFC 3/6] mac80211: add drv_* wrappers for channel contexts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Michal Kazior <michal.kazior@xxxxxxxxx>
---
 net/mac80211/driver-ops.h |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index 6d33a0c..5bc1efc 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -845,4 +845,49 @@ drv_allow_buffered_frames(struct ieee80211_local *local,
 						  more_data);
 	trace_drv_return_void(local);
 }
+
+static inline void
+drv_add_channel_context(struct ieee80211_local *local,
+		        struct ieee80211_channel_context *ctx)
+{
+	if (local->ops->add_channel_context)
+		local->ops->add_channel_context(&local->hw, ctx);
+}
+
+static inline void
+drv_remove_channel_context(struct ieee80211_local *local,
+			   struct ieee80211_channel_context *ctx)
+{
+	if (local->ops->remove_channel_context)
+		local->ops->remove_channel_context(&local->hw, ctx);
+}
+
+static inline void
+drv_change_channel_type(struct ieee80211_local *local,
+			struct ieee80211_channel_context *ctx)
+{
+	if (local->ops->change_channel_type)
+		local->ops->change_channel_type(&local->hw, ctx);
+}
+
+static inline void
+drv_assign_vif_channel_context(struct ieee80211_local *local,
+			       struct ieee80211_sub_if_data *sdata,
+			       struct ieee80211_channel_context *ctx)
+{
+	if (local->ops->assign_vif_channel_context)
+		local->ops->assign_vif_channel_context(&local->hw,
+						       &sdata->vif, ctx);
+}
+
+static inline void
+drv_unassign_vif_channel_context(struct ieee80211_local *local,
+				 struct ieee80211_sub_if_data *sdata,
+				 struct ieee80211_channel_context *ctx)
+{
+	if (local->ops->unassign_vif_channel_context)
+		local->ops->unassign_vif_channel_context(&local->hw,
+							 &sdata->vif, ctx);
+}
+
 #endif /* __MAC80211_DRIVER_OPS */
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux