File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
drivers/net/wireless/intel/ipw2x00 Expand file tree Collapse file tree 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,
870870 switch (ieee -> iw_mode ) {
871871 case IW_MODE_ADHOC :
872872 /* 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 ) ) {
875875 /* promisc: get all */
876876 if (ieee -> dev -> flags & IFF_PROMISC )
877877 is_packet_for_us = 1 ;
@@ -885,8 +885,8 @@ void libipw_rx_any(struct libipw_device *ieee,
885885 break ;
886886 case IW_MODE_INFRA :
887887 /* 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 ) ) {
890890 /* promisc: get all */
891891 if (ieee -> dev -> flags & IFF_PROMISC )
892892 is_packet_for_us = 1 ;
You can’t perform that action at this time.
0 commit comments