diff options
4 files changed, 16 insertions, 17 deletions
diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211.h b/drivers/staging/rtl8192e/ieee80211/ieee80211.h index af6465334036..527c368897c0 100644 --- a/drivers/staging/rtl8192e/ieee80211/ieee80211.h +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211.h | |||
@@ -2165,16 +2165,16 @@ struct ieee80211_device { | |||
2165 | * The fucntion start_scan should initiate the background | 2165 | * The fucntion start_scan should initiate the background |
2166 | * scanning and can't sleep. | 2166 | * scanning and can't sleep. |
2167 | */ | 2167 | */ |
2168 | void (*scan_syncro)(struct net_device *dev); | 2168 | void (*scan_syncro)(struct ieee80211_device *ieee80211); |
2169 | void (*start_scan)(struct net_device *dev); | 2169 | void (*start_scan)(struct ieee80211_device *ieee80211); |
2170 | void (*stop_scan)(struct net_device *dev); | 2170 | void (*stop_scan)(struct ieee80211_device *ieee80211); |
2171 | 2171 | ||
2172 | /* indicate the driver that the link state is changed | 2172 | /* indicate the driver that the link state is changed |
2173 | * for example it may indicate the card is associated now. | 2173 | * for example it may indicate the card is associated now. |
2174 | * Driver might be interested in this to apply RX filter | 2174 | * Driver might be interested in this to apply RX filter |
2175 | * rules or simply light the LINK led | 2175 | * rules or simply light the LINK led |
2176 | */ | 2176 | */ |
2177 | void (*link_change)(struct net_device *dev); | 2177 | void (*link_change)(struct ieee80211_device *ieee80211); |
2178 | 2178 | ||
2179 | /* these two function indicates to the HW when to start | 2179 | /* these two function indicates to the HW when to start |
2180 | * and stop to send beacons. This is used when the | 2180 | * and stop to send beacons. This is used when the |
diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c index 7888cfe383f8..92cd71c3217c 100644 --- a/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c | |||
@@ -601,7 +601,7 @@ void ieee80211_stop_scan(struct ieee80211_device *ieee) | |||
601 | if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) | 601 | if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) |
602 | ieee80211_softmac_stop_scan(ieee); | 602 | ieee80211_softmac_stop_scan(ieee); |
603 | else | 603 | else |
604 | ieee->stop_scan(ieee->dev); | 604 | ieee->stop_scan(ieee); |
605 | } | 605 | } |
606 | 606 | ||
607 | /* called with ieee->lock held */ | 607 | /* called with ieee->lock held */ |
@@ -627,7 +627,7 @@ void ieee80211_rtl_start_scan(struct ieee80211_device *ieee) | |||
627 | queue_delayed_work(ieee->wq, &ieee->softmac_scan_wq, 0); | 627 | queue_delayed_work(ieee->wq, &ieee->softmac_scan_wq, 0); |
628 | } | 628 | } |
629 | }else | 629 | }else |
630 | ieee->start_scan(ieee->dev); | 630 | ieee->start_scan(ieee); |
631 | 631 | ||
632 | } | 632 | } |
633 | 633 | ||
@@ -647,7 +647,7 @@ void ieee80211_start_scan_syncro(struct ieee80211_device *ieee) | |||
647 | if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) | 647 | if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) |
648 | ieee80211_softmac_scan_syncro(ieee); | 648 | ieee80211_softmac_scan_syncro(ieee); |
649 | else | 649 | else |
650 | ieee->scan_syncro(ieee->dev); | 650 | ieee->scan_syncro(ieee); |
651 | 651 | ||
652 | } | 652 | } |
653 | 653 | ||
@@ -1378,7 +1378,7 @@ void ieee80211_associate_complete_wq(struct work_struct *work) | |||
1378 | ieee->LinkDetectInfo.NumRecvBcnInPeriod = 1; | 1378 | ieee->LinkDetectInfo.NumRecvBcnInPeriod = 1; |
1379 | ieee->LinkDetectInfo.NumRecvDataInPeriod= 1; | 1379 | ieee->LinkDetectInfo.NumRecvDataInPeriod= 1; |
1380 | } | 1380 | } |
1381 | ieee->link_change(ieee->dev); | 1381 | ieee->link_change(ieee); |
1382 | if(ieee->is_silent_reset == 0){ | 1382 | if(ieee->is_silent_reset == 0){ |
1383 | printk("============>normal associate\n"); | 1383 | printk("============>normal associate\n"); |
1384 | notify_wx_assoc_event(ieee); | 1384 | notify_wx_assoc_event(ieee); |
@@ -2350,7 +2350,7 @@ void ieee80211_start_master_bss(struct ieee80211_device *ieee) | |||
2350 | 2350 | ||
2351 | ieee->set_chan(ieee, ieee->current_network.channel); | 2351 | ieee->set_chan(ieee, ieee->current_network.channel); |
2352 | ieee->state = IEEE80211_LINKED; | 2352 | ieee->state = IEEE80211_LINKED; |
2353 | ieee->link_change(ieee->dev); | 2353 | ieee->link_change(ieee); |
2354 | notify_wx_assoc_event(ieee); | 2354 | notify_wx_assoc_event(ieee); |
2355 | 2355 | ||
2356 | if (ieee->data_hard_resume) | 2356 | if (ieee->data_hard_resume) |
@@ -2468,7 +2468,7 @@ void ieee80211_start_ibss_wq(struct work_struct *work) | |||
2468 | ieee->state = IEEE80211_LINKED; | 2468 | ieee->state = IEEE80211_LINKED; |
2469 | 2469 | ||
2470 | ieee->set_chan(ieee, ieee->current_network.channel); | 2470 | ieee->set_chan(ieee, ieee->current_network.channel); |
2471 | ieee->link_change(ieee->dev); | 2471 | ieee->link_change(ieee); |
2472 | 2472 | ||
2473 | notify_wx_assoc_event(ieee); | 2473 | notify_wx_assoc_event(ieee); |
2474 | 2474 | ||
@@ -2546,7 +2546,7 @@ void ieee80211_disassociate(struct ieee80211_device *ieee) | |||
2546 | Dot11d_Reset(ieee); | 2546 | Dot11d_Reset(ieee); |
2547 | #endif | 2547 | #endif |
2548 | ieee->is_set_key = false; | 2548 | ieee->is_set_key = false; |
2549 | ieee->link_change(ieee->dev); | 2549 | ieee->link_change(ieee); |
2550 | if (ieee->state == IEEE80211_LINKED || | 2550 | if (ieee->state == IEEE80211_LINKED || |
2551 | ieee->state == IEEE80211_ASSOCIATING) { | 2551 | ieee->state == IEEE80211_ASSOCIATING) { |
2552 | ieee->state = IEEE80211_NOLINK; | 2552 | ieee->state = IEEE80211_NOLINK; |
diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac_wx.c b/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac_wx.c index f82bb7d6203d..fcafe1925a72 100644 --- a/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac_wx.c +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac_wx.c | |||
@@ -321,7 +321,7 @@ void ieee80211_wx_sync_scan_wq(struct work_struct *work) | |||
321 | ieee80211_stop_send_beacons(ieee); | 321 | ieee80211_stop_send_beacons(ieee); |
322 | 322 | ||
323 | ieee->state = IEEE80211_LINKED_SCANNING; | 323 | ieee->state = IEEE80211_LINKED_SCANNING; |
324 | ieee->link_change(ieee->dev); | 324 | ieee->link_change(ieee); |
325 | ieee->InitialGainHandler(ieee->dev,IG_Backup); | 325 | ieee->InitialGainHandler(ieee->dev,IG_Backup); |
326 | if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT && ieee->pHTInfo->bCurBW40MHz) { | 326 | if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT && ieee->pHTInfo->bCurBW40MHz) { |
327 | b40M = 1; | 327 | b40M = 1; |
@@ -346,7 +346,7 @@ void ieee80211_wx_sync_scan_wq(struct work_struct *work) | |||
346 | 346 | ||
347 | ieee->InitialGainHandler(ieee->dev,IG_Restore); | 347 | ieee->InitialGainHandler(ieee->dev,IG_Restore); |
348 | ieee->state = IEEE80211_LINKED; | 348 | ieee->state = IEEE80211_LINKED; |
349 | ieee->link_change(ieee->dev); | 349 | ieee->link_change(ieee); |
350 | 350 | ||
351 | #ifdef ENABLE_LPS | 351 | #ifdef ENABLE_LPS |
352 | /* Notify AP that I wake up again */ | 352 | /* Notify AP that I wake up again */ |
diff --git a/drivers/staging/rtl8192e/r8192E_core.c b/drivers/staging/rtl8192e/r8192E_core.c index efd7e7f0a4f0..661c904ea8f7 100644 --- a/drivers/staging/rtl8192e/r8192E_core.c +++ b/drivers/staging/rtl8192e/r8192E_core.c | |||
@@ -1464,10 +1464,9 @@ static void rtl8192_pci_resetdescring(struct r8192_priv *priv) | |||
1464 | } | 1464 | } |
1465 | } | 1465 | } |
1466 | 1466 | ||
1467 | static void rtl8192_link_change(struct net_device *dev) | 1467 | static void rtl8192_link_change(struct ieee80211_device *ieee) |
1468 | { | 1468 | { |
1469 | struct r8192_priv *priv = ieee80211_priv(dev); | 1469 | struct r8192_priv *priv = ieee80211_priv(ieee->dev); |
1470 | struct ieee80211_device* ieee = priv->ieee80211; | ||
1471 | 1470 | ||
1472 | if (ieee->state == IEEE80211_LINKED) | 1471 | if (ieee->state == IEEE80211_LINKED) |
1473 | { | 1472 | { |
@@ -3322,7 +3321,7 @@ static void rtl819x_watchdog_wqcallback(struct work_struct *work) | |||
3322 | RemovePeerTS(priv->ieee80211,priv->ieee80211->current_network.bssid); | 3321 | RemovePeerTS(priv->ieee80211,priv->ieee80211->current_network.bssid); |
3323 | ieee->is_roaming = true; | 3322 | ieee->is_roaming = true; |
3324 | ieee->is_set_key = false; | 3323 | ieee->is_set_key = false; |
3325 | ieee->link_change(dev); | 3324 | ieee->link_change(ieee); |
3326 | queue_work(ieee->wq, &ieee->associate_procedure_wq); | 3325 | queue_work(ieee->wq, &ieee->associate_procedure_wq); |
3327 | } | 3326 | } |
3328 | } | 3327 | } |