Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265697
b: refs/heads/master
c: 80d6e96
h: refs/heads/master
i:
  265695: ae49627
v: v3
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Aug 26, 2011
1 parent eac873f commit 1331d48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a63ef0faf90985c847a2f924a72a22830ed1c10
refs/heads/master: 80d6e96be80593ae98a5d68c9ae4e054359d1a89
11 changes: 7 additions & 4 deletions trunk/drivers/net/wireless/ath/carl9170/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include <asm/div64.h>
#include "carl9170.h"
#include "cmd.h"

Expand Down Expand Up @@ -187,10 +188,12 @@ int carl9170_collect_tally(struct ar9170 *ar)

if (ar->channel) {
info = &ar->survey[ar->channel->hw_value];

info->channel_time = ar->tally.active / 1000;
info->channel_time_busy = ar->tally.cca / 1000;
info->channel_time_tx = ar->tally.tx_time / 1000;
info->channel_time = ar->tally.active;
info->channel_time_busy = ar->tally.cca;
info->channel_time_tx = ar->tally.tx_time;
do_div(info->channel_time, 1000);
do_div(info->channel_time_busy, 1000);
do_div(info->channel_time_tx, 1000);
}
}
return 0;
Expand Down

0 comments on commit 1331d48

Please sign in to comment.