|
Lines 291-297
Link Here
|
| 291 |
static int |
291 |
static int |
| 292 |
adhoc_input(struct ieee80211_node *ni, struct mbuf *m, int rssi, int nf) |
292 |
adhoc_input(struct ieee80211_node *ni, struct mbuf *m, int rssi, int nf) |
| 293 |
{ |
293 |
{ |
| 294 |
#define HAS_SEQ(type) ((type & 0x4) == 0) |
|
|
| 295 |
struct ieee80211vap *vap = ni->ni_vap; |
294 |
struct ieee80211vap *vap = ni->ni_vap; |
| 296 |
struct ieee80211com *ic = ni->ni_ic; |
295 |
struct ieee80211com *ic = ni->ni_ic; |
| 297 |
struct ifnet *ifp = vap->iv_ifp; |
296 |
struct ifnet *ifp = vap->iv_ifp; |
|
Lines 414-420
Link Here
|
| 414 |
} |
413 |
} |
| 415 |
IEEE80211_RSSI_LPF(ni->ni_avgrssi, rssi); |
414 |
IEEE80211_RSSI_LPF(ni->ni_avgrssi, rssi); |
| 416 |
ni->ni_noise = nf; |
415 |
ni->ni_noise = nf; |
| 417 |
if (HAS_SEQ(type) && IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) { |
416 |
if (IEEE80211_HAS_SEQ(type, subtype) && |
|
|
417 |
IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) { |
| 418 |
uint8_t tid = ieee80211_gettid(wh); |
418 |
uint8_t tid = ieee80211_gettid(wh); |
| 419 |
if (IEEE80211_QOS_HAS_SEQ(wh) && |
419 |
if (IEEE80211_QOS_HAS_SEQ(wh) && |
| 420 |
TID_TO_WME_AC(tid) >= WME_AC_VI) |
420 |
TID_TO_WME_AC(tid) >= WME_AC_VI) |