wmi.c (dd0a11815a339d6deeea8357574f8126a8404c92) | wmi.c (d1e33e654ef6bb3dee766353ed9dd31e7dcb8a94) |
---|---|
1/* 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 2740 unchanged lines hidden (view full) --- 2749 for (band = 0; band <= IEEE80211_BAND_5GHZ; band++) { 2750 /* copy legacy rate mask */ 2751 ratemask[band] = mask->control[band].legacy; 2752 if (band == IEEE80211_BAND_5GHZ) 2753 ratemask[band] = 2754 mask->control[band].legacy << 4; 2755 2756 /* copy mcs rate mask */ | 1/* 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 2740 unchanged lines hidden (view full) --- 2749 for (band = 0; band <= IEEE80211_BAND_5GHZ; band++) { 2750 /* copy legacy rate mask */ 2751 ratemask[band] = mask->control[band].legacy; 2752 if (band == IEEE80211_BAND_5GHZ) 2753 ratemask[band] = 2754 mask->control[band].legacy << 4; 2755 2756 /* copy mcs rate mask */ |
2757 mcsrate = mask->control[band].mcs[1]; | 2757 mcsrate = mask->control[band].ht_mcs[1]; |
2758 mcsrate <<= 8; | 2758 mcsrate <<= 8; |
2759 mcsrate |= mask->control[band].mcs[0]; | 2759 mcsrate |= mask->control[band].ht_mcs[0]; |
2760 ratemask[band] |= mcsrate << 12; 2761 ratemask[band] |= mcsrate << 28; 2762 } 2763 2764 ath6kl_dbg(ATH6KL_DBG_WMI, 2765 "Ratemask 64 bit: 2.4:%llx 5:%llx\n", 2766 ratemask[0], ratemask[1]); 2767 --- 33 unchanged lines hidden (view full) --- 2801 for (band = 0; band <= IEEE80211_BAND_5GHZ; band++) { 2802 /* copy legacy rate mask */ 2803 ratemask[band] = mask->control[band].legacy; 2804 if (band == IEEE80211_BAND_5GHZ) 2805 ratemask[band] = 2806 mask->control[band].legacy << 4; 2807 2808 /* copy mcs rate mask */ | 2760 ratemask[band] |= mcsrate << 12; 2761 ratemask[band] |= mcsrate << 28; 2762 } 2763 2764 ath6kl_dbg(ATH6KL_DBG_WMI, 2765 "Ratemask 64 bit: 2.4:%llx 5:%llx\n", 2766 ratemask[0], ratemask[1]); 2767 --- 33 unchanged lines hidden (view full) --- 2801 for (band = 0; band <= IEEE80211_BAND_5GHZ; band++) { 2802 /* copy legacy rate mask */ 2803 ratemask[band] = mask->control[band].legacy; 2804 if (band == IEEE80211_BAND_5GHZ) 2805 ratemask[band] = 2806 mask->control[band].legacy << 4; 2807 2808 /* copy mcs rate mask */ |
2809 mcsrate = mask->control[band].mcs[0]; | 2809 mcsrate = mask->control[band].ht_mcs[0]; |
2810 ratemask[band] |= mcsrate << 12; 2811 ratemask[band] |= mcsrate << 20; 2812 } 2813 2814 ath6kl_dbg(ATH6KL_DBG_WMI, 2815 "Ratemask 32 bit: 2.4:%x 5:%x\n", 2816 ratemask[0], ratemask[1]); 2817 --- 1316 unchanged lines hidden --- | 2810 ratemask[band] |= mcsrate << 12; 2811 ratemask[band] |= mcsrate << 20; 2812 } 2813 2814 ath6kl_dbg(ATH6KL_DBG_WMI, 2815 "Ratemask 32 bit: 2.4:%x 5:%x\n", 2816 ratemask[0], ratemask[1]); 2817 --- 1316 unchanged lines hidden --- |