Nwo it should build on 2.2.x :)
This commit is contained in:
parent
a0ec7f6de9
commit
a12252a812
|
@ -98,6 +98,12 @@ const long prism2wext_channel_freq[] = {
|
|||
|
||||
/** function declarations =============== */
|
||||
|
||||
#if WIRELESS_EXT > 8
|
||||
static int prism2wext_get_string(hfa384x_t *hw, struct iw_point *erq, UINT16 rid, UINT16 len);
|
||||
#endif
|
||||
|
||||
static int prism2wext_get_channel(struct iw_freq *iwf);
|
||||
|
||||
/* called by p80211wstats_get_wireless_stats for /proc/net/wireless */
|
||||
struct iw_statistics* prism2wext_get_wireless_stats(netdevice_t *dev)
|
||||
{
|
||||
|
@ -170,7 +176,9 @@ static int prism2wext_getrate(hfa384x_t* hw, struct iw_param *rrq)
|
|||
return err;
|
||||
|
||||
rrq->fixed = 0;
|
||||
#if WIRELESS_EXT > 8
|
||||
rrq->disabled = 0;
|
||||
#endif
|
||||
rrq->value = 0;
|
||||
|
||||
switch (rate) {
|
||||
|
@ -405,7 +413,7 @@ int prism2wext_support_ioctl(netdevice_t *dev, struct iwreq *iwr, int cmd)
|
|||
}
|
||||
|
||||
/* determine a channel */
|
||||
int prism2wext_get_channel(struct iw_freq *iwf) {
|
||||
static int prism2wext_get_channel(struct iw_freq *iwf) {
|
||||
int mult = 1, chan = -1, i;
|
||||
|
||||
DBFENTER;
|
||||
|
@ -427,9 +435,13 @@ int prism2wext_get_channel(struct iw_freq *iwf) {
|
|||
|
||||
return chan;
|
||||
}
|
||||
|
||||
#if WIRELESS_EXT > 8
|
||||
|
||||
/* return a string value to user space */
|
||||
int prism2wext_get_string(hfa384x_t *hw, struct iw_point *erq, UINT16 rid, UINT16 len) {
|
||||
static int prism2wext_get_string(hfa384x_t *hw, struct iw_point *erq,
|
||||
UINT16 rid, UINT16 len)
|
||||
{
|
||||
UINT8 bytebuf[len];
|
||||
UINT8 pstrbuf[len];
|
||||
hfa384x_bytestr_t *bytestr = (hfa384x_bytestr_t*)bytebuf;
|
||||
|
@ -459,4 +471,6 @@ int prism2wext_get_string(hfa384x_t *hw, struct iw_point *erq, UINT16 rid, UINT1
|
|||
|
||||
return (err);
|
||||
}
|
||||
#endif /* WIRELESS_EXT > 8 */
|
||||
|
||||
#endif /* compatibility to wireless extensions */
|
||||
|
|
|
@ -42,12 +42,6 @@
|
|||
struct iw_statistics* prism2wext_get_wireless_stats(netdevice_t *dev);
|
||||
/* wireless extensions' ioctls */
|
||||
int prism2wext_support_ioctl(netdevice_t *dev, struct iwreq *iwr, int cmd);
|
||||
/* used by the ioctls ----------------- */
|
||||
/* return a string value to user space */
|
||||
int prism2wext_get_string(hfa384x_t *hw, struct iw_point *erq, UINT16 rid, UINT16 len);
|
||||
/* determine a channel */
|
||||
int prism2wext_get_channel(struct iw_freq *iwf);
|
||||
/* ... */
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue