|
@@ -1269,9 +1269,8 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
|
|
|
goto failed;
|
|
|
}
|
|
|
if ((msg->keepwepflags.status ==
|
|
|
- P80211ENUM_msgitem_status_data_ok)
|
|
|
- && (msg->keepwepflags.data !=
|
|
|
- P80211ENUM_truth_true)) {
|
|
|
+ P80211ENUM_msgitem_status_data_ok) &&
|
|
|
+ (msg->keepwepflags.data != P80211ENUM_truth_true)) {
|
|
|
/* Set the wepflags for no decryption */
|
|
|
word = HFA384x_WEPFLAGS_DISABLE_TXCRYPT |
|
|
|
HFA384x_WEPFLAGS_DISABLE_RXCRYPT;
|
|
@@ -1291,8 +1290,9 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
|
|
|
}
|
|
|
|
|
|
/* Do we want to strip the FCS in monitor mode? */
|
|
|
- if ((msg->stripfcs.status == P80211ENUM_msgitem_status_data_ok)
|
|
|
- && (msg->stripfcs.data == P80211ENUM_truth_true)) {
|
|
|
+ if ((msg->stripfcs.status ==
|
|
|
+ P80211ENUM_msgitem_status_data_ok) &&
|
|
|
+ (msg->stripfcs.data == P80211ENUM_truth_true)) {
|
|
|
hw->sniff_fcs = 0;
|
|
|
} else {
|
|
|
hw->sniff_fcs = 1;
|