···13281329 hdr = (struct ieee80211_hdr *)skb->data;1330 fc = hdr->frame_control;1331- for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) {1332 struct ieee80211_tx_rate *rate = &tx_info->status.rates[i];1333 if (!rate->count)1334 break;
···13281329 hdr = (struct ieee80211_hdr *)skb->data;1330 fc = hdr->frame_control;1331+ for (i = 0; i < sc->hw->max_rates; i++) {1332 struct ieee80211_tx_rate *rate = &tx_info->status.rates[i];1333 if (!rate->count)1334 break;
+1-1
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
···2265 int ret;22662267 ret = wait_event_timeout(priv->_agn.notif_waitq,2268- &wait_entry->triggered,2269 timeout);22702271 spin_lock_bh(&priv->_agn.notif_wait_lock);
···2265 int ret;22662267 ret = wait_event_timeout(priv->_agn.notif_waitq,2268+ wait_entry->triggered,2269 timeout);22702271 spin_lock_bh(&priv->_agn.notif_wait_lock);
···153 priv->scan_request = request;154155 err = orinoco_hw_trigger_scan(priv, request->ssids);156+ /* On error the we aren't processing the request */157+ if (err)158+ priv->scan_request = NULL;159160 return err;161}