carl9170 firmware: 5/10 MHz Channel Support for carl9170
[carl9170fw.git] / include / shared / fwcmd.h
index 2bf2d74e5c30e5128c05198b3bb05a35811c06c2..9f06a05b9fa11fc9f46641fb0e9d169b63a4258e 100644 (file)
@@ -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;