File tree 1 file changed +4
-4
lines changed
drivers/net/wireless/intel/ipw2x00
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -870,8 +870,8 @@ void libipw_rx_any(struct libipw_device *ieee,
870
870
switch (ieee -> iw_mode ) {
871
871
case IW_MODE_ADHOC :
872
872
/* our BSS and not from/to DS */
873
- if (ether_addr_equal (hdr -> addr3 , ieee -> bssid ))
874
- if ((fc & (IEEE80211_FCTL_TODS + IEEE80211_FCTL_FROMDS )) == 0 ) {
873
+ if (ether_addr_equal (hdr -> addr3 , ieee -> bssid ) &&
874
+ ((fc & (IEEE80211_FCTL_TODS + IEEE80211_FCTL_FROMDS )) == 0 ) ) {
875
875
/* promisc: get all */
876
876
if (ieee -> dev -> flags & IFF_PROMISC )
877
877
is_packet_for_us = 1 ;
@@ -885,8 +885,8 @@ void libipw_rx_any(struct libipw_device *ieee,
885
885
break ;
886
886
case IW_MODE_INFRA :
887
887
/* our BSS (== from our AP) and from DS */
888
- if (ether_addr_equal (hdr -> addr2 , ieee -> bssid ))
889
- if ((fc & (IEEE80211_FCTL_TODS + IEEE80211_FCTL_FROMDS )) == IEEE80211_FCTL_FROMDS ) {
888
+ if (ether_addr_equal (hdr -> addr2 , ieee -> bssid ) &&
889
+ ((fc & (IEEE80211_FCTL_TODS + IEEE80211_FCTL_FROMDS )) == IEEE80211_FCTL_FROMDS ) ) {
890
890
/* promisc: get all */
891
891
if (ieee -> dev -> flags & IFF_PROMISC )
892
892
is_packet_for_us = 1 ;
You can’t perform that action at this time.
0 commit comments