Add a hif type field on the ath6kl structure to distinguish between sdio or usb interface. Signed-off-by: Kevin Fang <kevin.fang@xxxxxxxxxxxxxxxx> --- drivers/net/wireless/ath/ath6kl/core.h | 6 ++++++ drivers/net/wireless/ath/ath6kl/sdio.c | 1 + 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/ath6kl/core.h b/drivers/net/wireless/ath/ath6kl/core.h index 0f7b0c0..768c349 100644 --- a/drivers/net/wireless/ath/ath6kl/core.h +++ b/drivers/net/wireless/ath/ath6kl/core.h @@ -369,6 +369,11 @@ struct ath6kl_req_key { #define SKIP_SCAN 11 #define WLAN_ENABLED 12 +enum hif_type { + HIF_TYPE_SDIO, + HIF_TYPE_USB +}; + struct ath6kl { struct device *dev; struct net_device *net_dev; @@ -378,6 +383,7 @@ struct ath6kl { int tx_pending[ENDPOINT_MAX]; int total_tx_data_pend; struct htc_target *htc_target; + enum hif_type hif_type; void *hif_priv; spinlock_t lock; struct semaphore sem; diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c index 0fb06fc..e5a5563 100644 --- a/drivers/net/wireless/ath/ath6kl/sdio.c +++ b/drivers/net/wireless/ath/ath6kl/sdio.c @@ -884,6 +884,7 @@ static int ath6kl_sdio_probe(struct sdio_func *func, ar_sdio->ar = ar; ar->hif_priv = ar_sdio; + ar->hif_type = HIF_TYPE_SDIO; ar->hif_ops = &ath6kl_sdio_ops; ath6kl_sdio_set_mbox_info(ar); -- 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