|
@@ -518,9 +518,9 @@ static int iwl3945_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
|
|
IWL_DEBUG_TX(priv, "Sending REASSOC frame\n");
|
|
IWL_DEBUG_TX(priv, "Sending REASSOC frame\n");
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- /* drop all data frame if we are not associated */
|
|
|
|
|
|
+ /* drop all non-injected data frame if we are not associated */
|
|
if (ieee80211_is_data(fc) &&
|
|
if (ieee80211_is_data(fc) &&
|
|
- (!iwl_is_monitor_mode(priv)) && /* packet injection */
|
|
|
|
|
|
+ !(info->flags & IEEE80211_TX_CTL_INJECTED) &&
|
|
(!iwl_is_associated(priv) ||
|
|
(!iwl_is_associated(priv) ||
|
|
((priv->iw_mode == NL80211_IFTYPE_STATION) && !priv->assoc_id))) {
|
|
((priv->iw_mode == NL80211_IFTYPE_STATION) && !priv->assoc_id))) {
|
|
IWL_DEBUG_DROP(priv, "Dropping - !iwl_is_associated\n");
|
|
IWL_DEBUG_DROP(priv, "Dropping - !iwl_is_associated\n");
|
|
@@ -532,7 +532,10 @@ static int iwl3945_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
|
|
hdr_len = ieee80211_hdrlen(fc);
|
|
hdr_len = ieee80211_hdrlen(fc);
|
|
|
|
|
|
/* Find (or create) index into station table for destination station */
|
|
/* Find (or create) index into station table for destination station */
|
|
- sta_id = iwl_get_sta_id(priv, hdr);
|
|
|
|
|
|
+ if (info->flags & IEEE80211_TX_CTL_INJECTED)
|
|
|
|
+ sta_id = priv->hw_params.bcast_sta_id;
|
|
|
|
+ else
|
|
|
|
+ sta_id = iwl_get_sta_id(priv, hdr);
|
|
if (sta_id == IWL_INVALID_STATION) {
|
|
if (sta_id == IWL_INVALID_STATION) {
|
|
IWL_DEBUG_DROP(priv, "Dropping - INVALID STATION: %pM\n",
|
|
IWL_DEBUG_DROP(priv, "Dropping - INVALID STATION: %pM\n",
|
|
hdr->addr1);
|
|
hdr->addr1);
|