RTLLIB_FCTL_FROMDS &&
memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN) == 0) {
/* FromDS frame with own addr as DA */
- } else
+ } else {
return 0;
+ }
if (skb->len < 24 + 8)
return 0;
if (*last_frag + 1 != frag)
/* out-of-order fragment */
goto drop;
- } else
+ } else {
*last_seq = seq;
+ }
*last_frag = frag;
*last_time = jiffies;
if (stats->freq == RTLLIB_52GHZ_BAND) {
/* for A band (No DS info) */
network->channel = stats->received_channel;
- } else
+ } else {
network->flags |= NETWORK_HAS_CCK;
+ }
network->wpa_ie_len = 0;
network->rsn_ie_len = 0;
return 1;
network->mode = 0;
- if (stats->freq == RTLLIB_52GHZ_BAND)
+
+ if (stats->freq == RTLLIB_52GHZ_BAND) {
network->mode = IEEE_A;
- else {
+ } else {
if (network->flags & NETWORK_HAS_OFDM)
network->mode |= IEEE_G;
if (network->flags & NETWORK_HAS_CCK)