wlan: Get the net_device properly based on kernel version

linkup_event_var event is not set as part of
hdd_netdev_notifier_call that gets invoked for
NETDEV_CHANGE event due to device name check
failure.

Fix is to get the net_device appropriately either
directly or from the notifier_info based on kernel
version.

Change-Id: I4fc172138b319e2522283dc8e4a785afc076dc04
CRs-Fixed: 2508165
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 776c208..517f3bc 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -307,7 +307,12 @@
                                          unsigned long state,
                                          void *ndev)
 {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0))
+   struct netdev_notifier_info *info = ndev;
+   struct net_device *dev = info->dev;
+#else
    struct net_device *dev = ndev;
+#endif
    hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR(dev);
    hdd_context_t *pHddCtx;
 #ifdef WLAN_BTAMP_FEATURE