Skip to contentSkip to conversation

rsi: Add macros for endpoints and set default value of endpoint.

PATCH New Jahnavi Meher 1 participant 1 message Jun 16, 2014 Redpine wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 4/16 rsi: Add macros for endpoints and set default value of endpoint.

Added macros for the endpoints and set the default value of endpoint to 2.4GHz and 20MHz.

---
 drivers/net/wireless/rsi/rsi_91x_mgmt.c |    1 +
 drivers/net/wireless/rsi/rsi_mgmt.h     |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)
drivers/net/wireless/rsi/rsi_91x_mgmt.c +1 -0
index 2eefbf1..2cdb36a 100644
@@ -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;
 }
 
 /**
drivers/net/wireless/rsi/rsi_mgmt.h +5 -0
index 225215a..0641068 100644
@@ -123,6 +123,11 @@
 #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 {
Signature · 1 line
1.7.1