Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267384
b: refs/heads/master
c: a5ee652
h: refs/heads/master
v: v3
  • Loading branch information
Ali Bahar authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 31b2eb0 commit 245d8f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1661dfdb99138eca2d3fbcf9c651ffcaba6f28a
refs/heads/master: a5ee65290d16c2fe06cecc8d0ed8530ffd8f0f2a
14 changes: 14 additions & 0 deletions trunk/drivers/staging/rtl8712/os_intfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,12 @@ static void enable_video_mode(struct _adapter *padapter, int cbw40_value)
r8712_fw_cmd(padapter, intcmd);
}

/**
*
* This function intends to handle the activation of an interface
* i.e. when it is brought Up/Active from a Down state.
*
*/
static int netdev_open(struct net_device *pnetdev)
{
struct _adapter *padapter = (struct _adapter *)_netdev_priv(pnetdev);
Expand Down Expand Up @@ -434,6 +440,12 @@ static int netdev_open(struct net_device *pnetdev)
return -1;
}

/**
*
* This function intends to handle the shutdown of an interface
* i.e. when it is brought Down from an Up/Active state.
*
*/
static int netdev_close(struct net_device *pnetdev)
{
struct _adapter *padapter = (struct _adapter *) _netdev_priv(pnetdev);
Expand All @@ -458,6 +470,8 @@ static int netdev_close(struct net_device *pnetdev)
r8712_free_network_queue(padapter);
/*Stop driver mlme relation timer*/
stop_drv_timers(padapter);
/* The interface is no longer Up: */
padapter->bup = false;
return 0;
}

Expand Down

0 comments on commit 245d8f6

Please sign in to comment.