carl9170 firmware: fix time accouting
[carl9170fw.git] / carlfw / include / carl9170.h
index b4a7fe72f2a4a453b7fdb3a246290c4852ced8fc..d3afcdbc2849e87ebce06e4ec6918686db0ec8fb 100644 (file)
@@ -78,7 +78,7 @@ typedef void (*fw_desc_callback_t)(void *, const bool);
 
 struct firmware_context_struct {
        /* timer / clocks */
-       unsigned int ticks_per_msec;
+       unsigned int ticks_per_usec;
        unsigned int counter;                   /* main() cycles */
 
        /* misc */
@@ -141,6 +141,16 @@ struct firmware_context_struct {
                struct carl9170_bar_ctx ba_cache[CONFIG_CARL9170FW_BACK_REQS_NUM];
                unsigned int ba_tail_idx,
                             ba_head_idx;
+
+#ifdef CONFIG_CARL9170FW_WOL
+               struct {
+                       struct carl9170_wol_cmd cmd;
+                       unsigned int last_beacon;
+                       unsigned int lost_null;
+                       unsigned int last_null;
+                       bool wake_up;
+               } wol;
+#endif /* CONFIG_CARL9170FW_WOL */
        } wlan;
 
        struct {