[PATCH] struct ieee80211_if_init is no longer used

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

 



>From 61b4ccf688b876cfc787a0af99fd5055035ca85f Mon Sep 17 00:00:00 2001
From: Henry Zhang <henryzhang62@xxxxxxxxx>
Date: Tue, 5 Jan 2010 01:47:14 -0500

replace struct struct ieee80211_if_init with struct ieee80211_vif

---
 ath/ath9k/ath9k_htc.c |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/ath/ath9k/ath9k_htc.c b/ath/ath9k/ath9k_htc.c
index 68653f5..e9e48a8 100644
--- a/ath/ath9k/ath9k_htc.c
+++ b/ath/ath9k/ath9k_htc.c
@@ -795,8 +795,7 @@ out:
 	return;
 }
 
-static int ath9k_htc_add_interface(struct ieee80211_hw *hw,
-				   struct ieee80211_if_init_conf *conf)
+static int ath9k_htc_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
 {
 	struct ath_htc_priv *priv = hw->priv;
 	struct ath9k_htc_fw_interface fw_interface;
@@ -815,9 +814,9 @@ static int ath9k_htc_add_interface(struct ieee80211_hw *hw,
 
 	memset(&fw_interface, 0, sizeof(struct ath9k_htc_fw_interface));
 
-	memcpy(&fw_interface.myaddr, conf->mac_addr, ETH_ALEN);
+	memcpy(fw_interface.myaddr, vif->addr, ETH_ALEN);
 
-	switch (conf->type) {
+	switch (vif->type) {
 	case NL80211_IFTYPE_STATION:
 		fw_interface.opmode = cpu_to_be32(ATH9K_HTC_FW_MODE_STA);
 		break;
@@ -826,26 +825,26 @@ static int ath9k_htc_add_interface(struct ieee80211_hw *hw,
 		break;
 	default:
 		ath_print(common, ATH_DBG_FATAL,
-			  "Interface type %d not yet supported\n", conf->type);
+			  "Interface type %d not yet supported\n", vif->type);
 		goto out;
 
 	}
 
 	ath_print(common, ATH_DBG_CONFIG,
-		  "Adding a VIF of type: %d\n", conf->type);
+		  "Adding a VIF of type: %d\n", vif->type);
 
 	priv->nvifs++;
 
 	if (priv->nvifs > 1)
 		goto out; /* skip global settings for secondary vif */
 
-	if (conf->type == NL80211_IFTYPE_AP) {
+	if (vif->type == NL80211_IFTYPE_AP) {
 		ath9k_hw_set_tsfadjust(ah, 1);
 		priv->op_flags |= SC_OP_TSF_RESET;
 	}
 
 	/* Set the device opmode */
-	ah->opmode = conf->type;
+	ah->opmode = vif->type;
 
 	fw_interface.vif_index = priv->nvifs;
 	WMI_CMD_BUF(WMI_VAP_CREATE_CMDID, &fw_interface);
@@ -855,8 +854,7 @@ out:
 	return r;
 }
 
-static void ath9k_htc_remove_interface(struct ieee80211_hw *hw,
-				       struct ieee80211_if_init_conf *conf)
+static void ath9k_htc_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
 {
 	struct ath_htc_priv *priv = hw->priv;
 	struct ath_hw *ah = priv->ah;
@@ -874,7 +872,7 @@ static void ath9k_htc_remove_interface(struct ieee80211_hw *hw,
 		goto out;
 
 	ath_print(common, ATH_DBG_CONFIG,
-		  "Romoving a VIF of type: %d\n", conf->type);
+		  "Romoving a VIF of type: %d\n", vif->type);
 
 	/*
 	 * Quiesce the hardware while we remove the interface. In
-- 
1.6.0.4



      
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux