About No ACK Frame Transmission
Hi all,
I use D-link DWA643 with ath9k to operate a wireless ad-hoc network (i.e
2 computer connect to each other). I set the frame to be no Ack (by hacking the header of QoS bit and confirmed the network has no Ack) but I experience a extremely slow speed for this network.
I found that in rate.c there is a function.
bool rate_control_send_low(struct ieee80211_sta *sta,
void *priv_sta,
struct ieee80211_tx_rate_control *txrc)
{
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(txrc->skb);
struct ieee80211_supported_band *sband = txrc->sband;
int mcast_rate;
if (!sta || !priv_sta || rc_no_data_or_no_ack_use_min(txrc)) {
if ((sband->band != IEEE80211_BAND_2GHZ) ||
!(info->flags & IEEE80211_TX_CTL_NO_CCK_RATE))
info->control.rates[0].idx =
rate_lowest_index(txrc->sband, sta);
else
info->control.rates[0].idx =
rate_lowest_non_cck_index(txrc->sband, sta);
info->control.rates[0].count =
(info->flags & IEEE80211_TX_CTL_NO_ACK) ?
1 : txrc->hw->max_rate_tries;
if (!sta && txrc->bss) {
mcast_rate = txrc->bss_conf->mcast_rate[sband->band];
if (mcast_rate > 0) {
info->control.rates[0].idx = mcast_rate - 1;
return true;
}
rc_send_low_broadcast(&info->control.rates[0].idx,
txrc->bss_conf->basic_rates,
sband);
}
return true;
}
return false;
}If the frame detected is set to no ack. The system will use low speed to transmit it. I tried to set this boolean to be all false or delete all operation and just return this boolean to be false but both don't work. I tried to use iwconfig to fix the rate and it doesn't work either. It always run with different speed with large variance. The network speed for no ack frame transmission is like smaller than 1 Mbits. Does anyone have ideas to that issue? Thanks.
Regards,
Jay