开发者

How to Write a timer in mac80211

开发者 https://www.devze.com 2023-03-30 23:04 出处:网络
How can I write a timer in mac80211 to periodic send a Frame? And how can I call the other function by tra开发者_StackOverflow中文版nsmit the corresponding parameters ?

How can I write a timer in mac80211 to periodic send a Frame?

And how can I call the other function by tra开发者_StackOverflow中文版nsmit the corresponding parameters ?

Thanks all!


Checking my Ubuntu's clock sources:

cat /sys/devices/system/clocksource/clocksource0/available_clocksource hpet acpi_pm

As possibly the outdated RTC, these are all the possible clock sources available.

the mac80211 hardware does not have the timer functionality - NORMALLY.....cannot generalize for all.

Anyway, given these available clocksource, just have to a register an event with the timer to wake periodically to send out data via mac80211.

For example, use this as a base:

http://blog.fpmurphy.com/2009/07/linux-hpet-support.html

0

精彩评论

暂无评论...
验证码 换一张
取 消