Commit b483f757 authored by Margit Schubert-While's avatar Margit Schubert-While Committed by Linus Torvalds

[PATCH] prism54: Add new private ioctls

* oid_mgt.[c,h] : added type to oids. New functions :
  oid_cpu_to_le(), mgt_le_to_cpu() and mgt_response_to_str().

* isl_ioctl.c : use private sub-ioctls. Added a
  bunch of private sub-ioctls. Removed the le??_to_cpu and
  cpu_to_le??. Give the error code when sending wireless
  events.
parent 9c6c5143
This diff is collapsed.
...@@ -458,16 +458,29 @@ enum oid_num_t { ...@@ -458,16 +458,29 @@ enum oid_num_t {
OID_NUM_LAST OID_NUM_LAST
}; };
/* We could add more flags. eg: in which mode are they allowed, ro, rw, ...*/ #define OID_FLAG_CACHED 0x80
#define OID_FLAG_CACHED 0x01 #define OID_FLAG_TYPE 0x7f
#define OID_FLAG_U32 0x02
#define OID_FLAG_MLMEEX 0x04 /* this type is special because of a variable #define OID_TYPE_U32 0x01
size field when sending. Not yet implemented (not used in driver). */ #define OID_TYPE_SSID 0x02
#define OID_TYPE_KEY 0x03
#define OID_TYPE_BUFFER 0x04
#define OID_TYPE_BSS 0x05
#define OID_TYPE_BSSLIST 0x06
#define OID_TYPE_FREQUENCIES 0x07
#define OID_TYPE_MLME 0x08
#define OID_TYPE_MLMEEX 0x09
#define OID_TYPE_ADDR 0x0A
#define OID_TYPE_RAW 0x0B
/* OID_TYPE_MLMEEX is special because of a variable size field when sending.
* Not yet implemented (not used in driver anyway).
*/
struct oid_t { struct oid_t {
enum oid_num_t oid; enum oid_num_t oid;
short range; /* to define a range of oid */ short range; /* to define a range of oid */
short size; /* size of the associated data */ short size; /* max size of the associated data */
char flags; char flags;
}; };
...@@ -479,6 +492,7 @@ union oid_res_t { ...@@ -479,6 +492,7 @@ union oid_res_t {
#define IWMAX_BITRATES 20 #define IWMAX_BITRATES 20
#define IWMAX_BSS 24 #define IWMAX_BSS 24
#define IWMAX_FREQ 30 #define IWMAX_FREQ 30
#define PRIV_STR_SIZE 1024
#endif /* !defined(_ISL_OID_H) */ #endif /* !defined(_ISL_OID_H) */
/* EOF */ /* EOF */
This diff is collapsed.
...@@ -32,6 +32,8 @@ extern const int frequency_list_bg[]; ...@@ -32,6 +32,8 @@ extern const int frequency_list_bg[];
extern const int frequency_list_a[]; extern const int frequency_list_a[];
void mgt_le_to_cpu(int, void *);
int mgt_set_request(islpci_private *, enum oid_num_t, int, void *); int mgt_set_request(islpci_private *, enum oid_num_t, int, void *);
int mgt_get_request(islpci_private *, enum oid_num_t, int, void *, int mgt_get_request(islpci_private *, enum oid_num_t, int, void *,
...@@ -47,5 +49,7 @@ int mgt_mlme_answer(islpci_private *); ...@@ -47,5 +49,7 @@ int mgt_mlme_answer(islpci_private *);
enum oid_num_t mgt_oidtonum(u32 oid); enum oid_num_t mgt_oidtonum(u32 oid);
int mgt_response_to_str(enum oid_num_t, union oid_res_t *, char *);
#endif /* !defined(_OID_MGT_H) */ #endif /* !defined(_OID_MGT_H) */
/* EOF */ /* EOF */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment