65 else if (txqsele&0xF0)
97 if (ep_cfg & USB_NORMAL_SIE_EP_MASK) {
104 static void _TwoOutEpMapping(
struct ieee80211_hw *hw,
bool bIsChipB,
111 "USB Chip-B & WMM Setting.....\n");
121 "USB typical Setting.....\n");
132 static void _ThreeOutEpMapping(
struct ieee80211_hw *hw,
bool bwificfg,
138 "USB 3EP Setting for WMM.....\n");
148 "USB 3EP Setting for typical.....\n");
172 bool bIsChipN, bwificfg =
false;
181 _TwoOutEpMapping(hw, bIsChipN, bwificfg, ep_map);
189 _ThreeOutEpMapping(hw, bIsChipN, ep_map);
192 _OneOutEpMapping(hw, ep_map);
208 error = _ConfigVerNOutEP(hw);
210 error = _ConfigVerTOutEP(hw);
213 error = _out_ep_mapping(hw);
224 if (
unlikely(ieee80211_is_beacon(fc))) {
228 if (ieee80211_is_mgmt(fc)) {
232 switch (mac80211_queue_index) {
247 RT_ASSERT(
false,
"QSLT_BE queue, skb_queue:%d\n",
248 mac80211_queue_index);
252 return hw_queue_index;
261 if (
unlikely(ieee80211_is_beacon(fc))) {
265 if (ieee80211_is_mgmt(fc)) {
269 switch (mac80211_queue_index) {
273 "VO queue, set qsel = 0x%x\n",
QSLT_VO);
278 "VI queue, set qsel = 0x%x\n",
QSLT_VI);
283 "BK queue, set qsel = 0x%x\n",
QSLT_BK);
289 "BE queue, set qsel = 0x%x\n",
QSLT_BE);
327 rx_status->
freq = hw->
conf.channel->center_freq;
328 rx_status->
band = hw->
conf.channel->band;
356 #define RTL_RX_DRV_INFO_UNIT 8
375 memset(rx_status, 0,
sizeof(*rx_status));
398 rx_status->
freq = hw->
conf.channel->center_freq;
399 rx_status->
band = hw->
conf.channel->band;
422 bv = ieee80211_is_probe_resp(fc);
425 "Got probe response frame\n");
426 if (ieee80211_is_beacon(fc))
428 if (ieee80211_is_data(fc))
431 "Fram: fc = 0x%X addr1 = 0x%02X:0x%02X:0x%02X:0x%02X:0x%02X:0x%02X\n",
436 memcpy(IEEE80211_SKB_RXCB(skb), rx_status,
sizeof(*rx_status));
442 _rtl_rx_process(hw, skb);
475 static void _rtl_fill_usb_tx_desc(
u8 *
txdesc)
484 static void _rtl_tx_desc_checksum(
u8 *
txdesc)
492 for (index = 0; index < 16; index++)
493 checksum = checksum ^ (*(ptr + index));
508 bool defaultadapter =
true;
509 u8 *qc = ieee80211_get_qos_ctl(hdr);
513 u8 rate_flag = info->
control.rates[0].flags;
516 skb_get_queue_mapping(skb));
569 u8 ampdu_density = sta->
ht_cap.ampdu_density;
575 switch (keyconf->
cipher) {
595 if (ieee80211_is_data_qos(fc)) {
598 "Enable RDG function\n");
603 if (rtlpriv->
dm.useramask) {
610 if ((!ieee80211_is_data_qos(fc)) && ppsc->
leisure_ps &&
617 if (ieee80211_has_morefrags(fc))
619 if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
620 is_broadcast_ether_addr(ieee80211_get_DA(hdr)))
622 _rtl_fill_usb_tx_desc(txdesc);
623 _rtl_tx_desc_checksum(txdesc);
628 u32 buffer_len,
bool bIsPsPoll)
648 _rtl_tx_desc_checksum(pDesc);
677 if (!ieee80211_is_data_qos(fc)) {