disable port 0 after leaving monitor mode if it was disabled when we
started.
This commit is contained in:
parent
4c98996a2d
commit
30502ae717
1
CHANGES
1
CHANGES
|
@ -41,6 +41,7 @@
|
|||
* Intersil Corporation as part of PRISM(R) chipset product development.
|
||||
*
|
||||
* --------------------------------------------------------------------
|
||||
- After leaving monitor mode, disable the port if we had to enable it.
|
||||
- Updates to hfa384x.h
|
||||
-pre6
|
||||
- Further script enhancements; automatically use scan mode on hardware
|
||||
|
|
|
@ -2882,6 +2882,7 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
|
|||
result);
|
||||
goto failed;
|
||||
}
|
||||
|
||||
/* Set the port to its prior type and enable (if necessary) */
|
||||
if (priv->presniff_port_type != 0 ) {
|
||||
word = priv->presniff_port_type;
|
||||
|
@ -2893,14 +2894,16 @@ int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp)
|
|||
result);
|
||||
goto failed;
|
||||
}
|
||||
|
||||
/* Enable the port */
|
||||
result = hfa384x_drvr_enable(hw, 0);
|
||||
if ( result ) {
|
||||
WLAN_LOG_DEBUG1(1,
|
||||
"failed to enable port to presniff setting, result=%d\n",
|
||||
result);
|
||||
WLAN_LOG_DEBUG1(1, "failed to enable port to presniff setting, result=%d\n", result);
|
||||
goto failed;
|
||||
}
|
||||
} else {
|
||||
result = hfa384x_drvr_disable(hw, 0);
|
||||
|
||||
}
|
||||
|
||||
msg->resultcode.data = P80211ENUM_resultcode_success;
|
||||
|
|
Loading…
Reference in New Issue