X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=include%2Fshared%2Ffwcmd.h;h=9f06a05b9fa11fc9f46641fb0e9d169b63a4258e;hb=1a0509856ccf28544058d42deccefeff0dbb7f95;hp=7ef5636aa1770d0aa0843ae5939d83b9f2cb0b57;hpb=d57b31e45dca1087cefd56876a0a8064efe4e29c;p=carl9170fw.git diff --git a/include/shared/fwcmd.h b/include/shared/fwcmd.h index 7ef5636..9f06a05 100644 --- a/include/shared/fwcmd.h +++ b/include/shared/fwcmd.h @@ -127,10 +127,15 @@ struct carl9170_write_reg { #define CARL9170FW_PHY_HT_DYN2040 0x8 #define CARL9170FW_PHY_HT_EXT_CHAN_OFF 0x3 #define CARL9170FW_PHY_HT_EXT_CHAN_OFF_S 2 +#define CARL9170FW_PHY_RF_DIV (BIT(4) | BIT(5)) +#define CARL9170FW_PHY_RF_BW_10MHZ BIT(4) +#define CARL9170FW_PHY_RF_BW_5MHZ BIT(5) +#define CARL9170FW_PHY_RF_DIV_S 4 + struct carl9170_rf_init { __le32 freq; - u8 ht_settings; + u8 settings; u8 padding2[3]; __le32 delta_slope_coeff_exp; __le32 delta_slope_coeff_man; @@ -156,6 +161,14 @@ struct carl9170_psm { } __packed; #define CARL9170_PSM_SIZE 4 +/* + * Note: If a bit in rx_filter is set, then it + * means that the particular frames which matches + * the condition are FILTERED/REMOVED/DISCARDED! + * (This is can be a bit confusing, especially + * because someone people think it's the exact + * opposite way, so watch out!) + */ struct carl9170_rx_filter_cmd { __le32 rx_filter; } __packed; @@ -187,7 +200,7 @@ struct carl9170_wol_cmd { u8 mac[6]; u8 bssid[6]; __le32 null_interval; - __le32 free_for_use2; + __le32 free_for_use2; __le32 mask; u8 pattern[32]; } __packed; @@ -289,10 +302,11 @@ struct carl9170_tsf_rsp { struct carl9170_tally_rsp { __le32 active; - __le32 main_free; - __le32 ext_free; + __le32 cca; + __le32 tx_time; __le32 rx_total; __le32 rx_overrun; + __le32 tick; } __packed; struct carl9170_rsp {