ral.patch

josepht, 07/26/2010 06:33 PM

Download (918 Bytes)

View differences:

sys/dev/netif/ral/rt2661.c
898 898
		data = &txq->data[txq->stat];
899 899
		m = data->m;
900 900
		data->m = NULL;
901
		ni = data->ni;
902
		data->ni = NULL;
903
		vap = ni->ni_vap;
904 901

  
905 902
		/* if no frame has been sent, ignore */
906 903
		if (ni == NULL)
907 904
			continue;
908 905

  
906
		ni = data->ni;
907
		data->ni = NULL;
908
		vap = ni->ni_vap;
909

  
909 910
		switch (RT2661_TX_RESULT(val)) {
910 911
		case RT2661_TX_SUCCESS:
911 912
			retrycnt = RT2661_TX_RETRYCNT(val);
......
1491 1492
	} else if (tp->ucastrate != IEEE80211_FIXED_RATE_NONE) {
1492 1493
		rate = tp->ucastrate;
1493 1494
	} else {
1494
		(void) ieee80211_ratectl_rate(ni, NULL, 0);
1495
		ieee80211_ratectl_rate(ni, NULL, 0);
1495 1496
		rate = ni->ni_txrate;
1496 1497
	}
1497 1498
	rate &= IEEE80211_RATE_VAL;