aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.h4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.h4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c5
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c5
4 files changed, 14 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h
index e0655b988f44..d7ccf13b875d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.h
@@ -830,7 +830,7 @@ struct iwl3945_priv {
830 struct iwl3945_station_entry stations[IWL_STATION_COUNT]; 830 struct iwl3945_station_entry stations[IWL_STATION_COUNT];
831 831
832 /* Indication if ieee80211_ops->open has been called */ 832 /* Indication if ieee80211_ops->open has been called */
833 int is_open; 833 u8 is_open;
834 834
835 u8 mac80211_registered; 835 u8 mac80211_registered;
836 836
@@ -851,7 +851,7 @@ struct iwl3945_priv {
851 /* eeprom */ 851 /* eeprom */
852 struct iwl3945_eeprom eeprom; 852 struct iwl3945_eeprom eeprom;
853 853
854 int iw_mode; 854 enum ieee80211_if_types iw_mode;
855 855
856 struct sk_buff *ibss_beacon; 856 struct sk_buff *ibss_beacon;
857 857
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h
index 98644d9c7803..069e591981b2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.h
@@ -1129,7 +1129,7 @@ struct iwl_priv {
1129 struct iwl4965_station_entry stations[IWL_STATION_COUNT]; 1129 struct iwl4965_station_entry stations[IWL_STATION_COUNT];
1130 1130
1131 /* Indication if ieee80211_ops->open has been called */ 1131 /* Indication if ieee80211_ops->open has been called */
1132 int is_open; 1132 u8 is_open;
1133 1133
1134 u8 mac80211_registered; 1134 u8 mac80211_registered;
1135 1135
@@ -1150,7 +1150,7 @@ struct iwl_priv {
1150 /* eeprom */ 1150 /* eeprom */
1151 struct iwl4965_eeprom eeprom; 1151 struct iwl4965_eeprom eeprom;
1152 1152
1153 int iw_mode; 1153 enum ieee80211_if_types iw_mode;
1154 1154
1155 struct sk_buff *ibss_beacon; 1155 struct sk_buff *ibss_beacon;
1156 1156
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 470a9abf12c3..ce8a31103eee 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -2058,6 +2058,8 @@ int iwl3945_is_network_packet(struct iwl3945_priv *priv, struct ieee80211_hdr *h
2058 return !compare_ether_addr(header->addr2, priv->bssid); 2058 return !compare_ether_addr(header->addr2, priv->bssid);
2059 /* packets to our adapter go through */ 2059 /* packets to our adapter go through */
2060 return !compare_ether_addr(header->addr1, priv->mac_addr); 2060 return !compare_ether_addr(header->addr1, priv->mac_addr);
2061 default:
2062 return 1;
2061 } 2063 }
2062 2064
2063 return 1; 2065 return 1;
@@ -2302,6 +2304,9 @@ static void iwl3945_connection_init_rx_config(struct iwl3945_priv *priv)
2302 priv->staging_rxon.filter_flags = RXON_FILTER_PROMISC_MSK | 2304 priv->staging_rxon.filter_flags = RXON_FILTER_PROMISC_MSK |
2303 RXON_FILTER_CTL2HOST_MSK | RXON_FILTER_ACCEPT_GRP_MSK; 2305 RXON_FILTER_CTL2HOST_MSK | RXON_FILTER_ACCEPT_GRP_MSK;
2304 break; 2306 break;
2307 default:
2308 IWL_ERROR("Unsupported interface type %d\n", priv->iw_mode);
2309 break;
2305 } 2310 }
2306 2311
2307#if 0 2312#if 0
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 9e49e8ce3348..e487432ef56e 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -1793,6 +1793,8 @@ int iwl4965_is_network_packet(struct iwl_priv *priv, struct ieee80211_hdr *heade
1793 return !compare_ether_addr(header->addr2, priv->bssid); 1793 return !compare_ether_addr(header->addr2, priv->bssid);
1794 /* packets to our adapter go through */ 1794 /* packets to our adapter go through */
1795 return !compare_ether_addr(header->addr1, priv->mac_addr); 1795 return !compare_ether_addr(header->addr1, priv->mac_addr);
1796 default:
1797 break;
1796 } 1798 }
1797 1799
1798 return 1; 1800 return 1;
@@ -2054,6 +2056,9 @@ static void iwl4965_connection_init_rx_config(struct iwl_priv *priv)
2054 priv->staging_rxon.filter_flags = RXON_FILTER_PROMISC_MSK | 2056 priv->staging_rxon.filter_flags = RXON_FILTER_PROMISC_MSK |
2055 RXON_FILTER_CTL2HOST_MSK | RXON_FILTER_ACCEPT_GRP_MSK; 2057 RXON_FILTER_CTL2HOST_MSK | RXON_FILTER_ACCEPT_GRP_MSK;
2056 break; 2058 break;
2059 default:
2060 IWL_ERROR("Unsupported interface type %d\n", priv->iw_mode);
2061 break;
2057 } 2062 }
2058 2063
2059#if 0 2064#if 0