disable port 0 after leaving monitor mode if it was disabled when we

started.
This commit is contained in:
solomon 2002-11-07 15:05:33 +00:00
parent 4c98996a2d
commit 30502ae717
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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;