mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[PATCH] hostap: Add support for WE-19
This patch adds support for WE-19 to the HostAP driver. One of the major change is the use of an explicit flag to tell if iwstat is in dBm or not. Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
parent
7a716536c6
commit
c28df16ed7
3 changed files with 12 additions and 6 deletions
|
@ -2349,7 +2349,7 @@ static int prism2_ap_get_sta_qual(local_info_t *local, struct sockaddr addr[],
|
|||
qual[count].noise = HFA384X_LEVEL_TO_dBm(sta->last_rx_silence);
|
||||
qual[count].updated = sta->last_rx_updated;
|
||||
|
||||
sta->last_rx_updated = 0;
|
||||
sta->last_rx_updated = IW_QUAL_DBM;
|
||||
|
||||
count++;
|
||||
if (count >= buf_size)
|
||||
|
@ -2467,7 +2467,7 @@ static int prism2_ap_translate_scan(struct net_device *dev, char *buffer)
|
|||
}
|
||||
#endif /* PRISM2_NO_KERNEL_IEEE80211_MGMT */
|
||||
|
||||
sta->last_rx_updated = 0;
|
||||
sta->last_rx_updated = IW_QUAL_DBM;
|
||||
|
||||
/* To be continued, we should make good use of IWEVCUSTOM */
|
||||
}
|
||||
|
@ -3174,7 +3174,7 @@ int hostap_update_rx_stats(struct ap_data *ap,
|
|||
sta->last_rx_silence = rx_stats->noise;
|
||||
sta->last_rx_signal = rx_stats->signal;
|
||||
sta->last_rx_rate = rx_stats->rate;
|
||||
sta->last_rx_updated = 7;
|
||||
sta->last_rx_updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM;
|
||||
if (rx_stats->rate == 10)
|
||||
sta->rx_count[0]++;
|
||||
else if (rx_stats->rate == 20)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue