Search Linux Wireless

RE: Question about IEEE80211_TX_CTL_NO_ACK in ath_9k

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > Hi everybody!
> >
> > My wireless card is AR9280. I set the IEEE80211_TX_CTL_NO_ACK flag
before
> > send a packet, but found it no use. It still wait for an ACK. Then I
read
> > the code,
> 
> may be any of the following hacks may work ?


Sorry,  I didn't make it clear!  My 9280 is an USB card, and the send
function is ath9k_htc_tx_data, there is no corresponding flag.


> 
> @@ -1039,6 +1039,9 @@ static void ath_tx_fill_desc(struct ath_softc
> *sc, struct ath_buf *bf,
>         info.qcu = txq->axq_qnum;
> 
>         info.flags = ATH9K_TXDESC_INTREQ;
> +
> +               info.flags |= ATH9K_TXDESC_NOACK;
> +
>         if (tx_info->flags & IEEE80211_TX_CTL_NO_ACK)
>                 info.flags |= ATH9K_TXDESC_NOACK;
>         if (tx_info->flags & IEEE80211_TX_CTL_LDPC)
> 
> (or)
> 
> diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
> index edcd1c7..0454dee 100644
> --- a/net/mac80211/tx.c
> +++ b/net/mac80211/tx.c
> @@ -1185,6 +1185,8 @@ ieee80211_tx_prepare(struct ieee80211_sub_if_data
> *sdata,
>         } else
>                 tx->flags |= IEEE80211_TX_UNICAST;
> 
> +               info->flags |= IEEE80211_TX_CTL_NO_ACK;
> +
>         if (!(info->flags & IEEE80211_TX_CTL_DONTFRAG)) {
>                 if (!(tx->flags & IEEE80211_TX_UNICAST) ||
>                     skb->len + FCS_LEN <= local->hw.wiphy->frag_threshold
||
> 
> 
> 
> --
> shafi
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless"
in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux