From: Amitkumar Karwar Date: Wed, 3 Aug 2011 01:42:23 +0000 (-0700) Subject: mwifiex: print driver version information X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5674fbb773af9588485a646ffed9f34cac0f9b20;p=openwrt%2Fstaging%2Fblogic.git mwifiex: print driver version information Add code to display driver version information in dmesg after loading the driver successfully. Signed-off-by: Amitkumar Karwar Signed-off-by: Yogesh Ashok Powar Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c index e5fc53dc6887..53579ad83e5c 100644 --- a/drivers/net/wireless/mwifiex/main.c +++ b/drivers/net/wireless/mwifiex/main.c @@ -849,6 +849,7 @@ mwifiex_add_card(void *card, struct semaphore *sem, { int i; struct mwifiex_adapter *adapter; + char fmt[64]; if (down_interruptible(sem)) goto exit_sem_err; @@ -897,6 +898,9 @@ mwifiex_add_card(void *card, struct semaphore *sem, up(sem); + mwifiex_drv_get_driver_version(adapter, fmt, sizeof(fmt) - 1); + dev_notice(adapter->dev, "driver_version = %s\n", fmt); + return 0; err_add_intf: