Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236051
b: refs/heads/master
c: da101d5
h: refs/heads/master
i:
  236049: 3ffdf18
  236047: ed1f735
v: v3
  • Loading branch information
Vipin Mehta authored and Greg Kroah-Hartman committed Feb 18, 2011
1 parent 9cd66bd commit 689939f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6642a67c552e6d525913bb5fb4a00b2008213451
refs/heads/master: da101d563503d399d92412e833b6d5ae49c8ee5d
17 changes: 10 additions & 7 deletions trunk/drivers/staging/ath6kl/os/linux/ar6000_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,14 @@ ar6000_avail_ev(void *context, void *hif_handle)
struct wireless_dev *wdev;
#endif /* ATH6K_CONFIG_CFG80211 */
int init_status = 0;
HIF_DEVICE_OS_DEVICE_INFO osDevInfo;

memset(&osDevInfo, 0, sizeof(osDevInfo));
if (HIFConfigureDevice(hif_handle, HIF_DEVICE_GET_OS_DEVICE,
&osDevInfo, sizeof(osDevInfo))) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("%s: Failed to get OS device instance\n", __func__));
return A_ERROR;
}

AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("ar6000_available\n"));

Expand All @@ -1623,7 +1631,7 @@ ar6000_avail_ev(void *context, void *hif_handle)
device_index = i;

#ifdef ATH6K_CONFIG_CFG80211
wdev = ar6k_cfg80211_init(NULL);
wdev = ar6k_cfg80211_init(osDevInfo.pOSDevice);
if (IS_ERR(wdev)) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("%s: ar6k_cfg80211_init failed\n", __func__));
return A_ERROR;
Expand Down Expand Up @@ -1668,12 +1676,7 @@ ar6000_avail_ev(void *context, void *hif_handle)

#ifdef SET_NETDEV_DEV
if (ar_netif) {
HIF_DEVICE_OS_DEVICE_INFO osDevInfo;
A_MEMZERO(&osDevInfo, sizeof(osDevInfo));
if (!HIFConfigureDevice(hif_handle, HIF_DEVICE_GET_OS_DEVICE,
&osDevInfo, sizeof(osDevInfo))) {
SET_NETDEV_DEV(dev, osDevInfo.pOSDevice);
}
SET_NETDEV_DEV(dev, osDevInfo.pOSDevice);
}
#endif

Expand Down

0 comments on commit 689939f

Please sign in to comment.