Nwo it should build on 2.2.x :)

This commit is contained in:
solomon 2002-09-28 02:59:12 +00:00
parent a0ec7f6de9
commit a12252a812
2 changed files with 16 additions and 8 deletions

View file

@ -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 */

View file

@ -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