> Does anybody use webgear/raylink (ray) with access point?
I don't have access to an AP unfortunetly, perhaps if_ray shows this :)
> I'm rewriting awi driver (another wireless card) and I found
> the macro definition in net/if_ieee80211.h is not accurate.
>
> from if_ieee80211.h:
> #define IEEE80211_FC1_RCVFROM_MASK 0x03
> #define IEEE80211_FC1_RCVFROM_TERMINAL 0x00
> #define IEEE80211_FC1_RCVFROM_AP 0x01
> #define IEEE80211_FC1_RCVFROM_AP2AP 0x02
>
> 802.11 spec defines these bits as follows:
> 0x00 (ToDS=0, FromDS=0) from station to station (adhoc mode)
> 0x01 (ToDS=1, FromDS=0) from station to access point
> 0x02 (ToDS=0, FromDS=1) from access point to station
> 0x03 (ToDS=1, FromDS=1) from access point to access point
> (wireless bridge)
I wondered about those names when I picked them.. I didn't have access
to the 802.11 standard at the time.
Based on your quote how about:
#define IEEE80211_FC1_TO_MASK 0x01
#define IEEE80211_FC1_TO_STATION 0x00
#define IEEE80211_FC1_TO_AP 0x01
#define IEEE80211_FC1_FROM_MASK 0x02
#define IEEE80211_FC1_FROM_STATION 0x00
#define IEEE80211_FC1_FROM_AP 0x02
BTW it looks like I reversed the meaning of the bits somehow in the
original definition.
> Though I'd like to change the macro definitions to adopt spec,
> I cannot understand the usage of this macro in ray driver.
> It seems to that if_ray driver discards received packets with
> value 0x02 (ToDS=0, FromDS=1 or currently defines as RCVFROM_AP2AP),
> which indicates from access point.
> Is it just a bug and no one can use ray driver with access point,
> or is there any tricks I cannot found?
No I think its a bug.. the intention was to drop AP to AP and
Station to AP frames.
Chris.