rsi: Add macros for endpoints and set default value of endpoint.
authorJahnavi Meher <jahnavi.meher@gmail.com>
Mon, 16 Jun 2014 14:11:22 +0000 (19:41 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 Jun 2014 19:49:21 +0000 (15:49 -0400)
Added macros for the endpoints and set the default value of endpoint
to 2.4GHz and 20MHz.

Signed-off-by: Jahnavi Meher <jahnavi.meher@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rsi/rsi_91x_mgmt.c
drivers/net/wireless/rsi/rsi_mgmt.h

index 2eefbf159bc0d0abdcead9ff1caf6b867d95793f..2cdb36a4239ee37e4c416619116a9ca718f038ba 100644 (file)
@@ -217,6 +217,7 @@ static void rsi_set_default_parameters(struct rsi_common *common)
        common->min_rate = 0xffff;
        common->fsm_state = FSM_CARD_NOT_READY;
        common->iface_down = true;
+       common->endpoint = EP_2GHZ_20MHZ;
 }
 
 /**
index 225215a3b8bb484d76b47ed853afb3aeb6eb2130..0641068d7fece66c7e1bcba956db38abda7d4c73 100644 (file)
 #define BW_20MHZ                        0
 #define BW_40MHZ                        1
 
+#define EP_2GHZ_20MHZ                  0
+#define EP_2GHZ_40MHZ                  1
+#define EP_5GHZ_20MHZ                  2
+#define EP_5GHZ_40MHZ                  3
+
 #define RSI_SUPP_FILTERS       (FIF_ALLMULTI | FIF_PROBE_REQ |\
                                 FIF_BCN_PRBRESP_PROMISC)
 enum opmode {