Skip to content

Commit 2b8fa9e

Browse files
Ondrej ZaryKalle Valo
authored andcommitted
airo: Implement netif_carrier_on/off
Add calls to netif_carrier_on and netif_carrier_off Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent 4a0f2ea commit 2b8fa9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/net/wireless/airo.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3267,6 +3267,7 @@ static void airo_handle_link(struct airo_info *ai)
32673267
wake_up_interruptible(&ai->thr_wait);
32683268
} else
32693269
airo_send_event(ai->dev);
3270+
netif_carrier_on(ai->dev);
32703271
} else if (!scan_forceloss) {
32713272
if (auto_wep && !ai->expires) {
32723273
ai->expires = RUN_AT(3*HZ);
@@ -3277,6 +3278,9 @@ static void airo_handle_link(struct airo_info *ai)
32773278
eth_zero_addr(wrqu.ap_addr.sa_data);
32783279
wrqu.ap_addr.sa_family = ARPHRD_ETHER;
32793280
wireless_send_event(ai->dev, SIOCGIWAP, &wrqu, NULL);
3281+
netif_carrier_off(ai->dev);
3282+
} else {
3283+
netif_carrier_off(ai->dev);
32803284
}
32813285
}
32823286

@@ -3613,6 +3617,7 @@ static void disable_MAC( struct airo_info *ai, int lock ) {
36133617
return;
36143618

36153619
if (test_bit(FLAG_ENABLED, &ai->flags)) {
3620+
netif_carrier_off(ai->dev);
36163621
memset(&cmd, 0, sizeof(cmd));
36173622
cmd.cmd = MAC_DISABLE; // disable in case already enabled
36183623
issuecommand(ai, &cmd, &rsp);

0 commit comments

Comments
 (0)