|
Lines 570-584
Link Here
|
| 570 |
ifp->if_baudrate = IF_Mbps(maxrate); |
570 |
ifp->if_baudrate = IF_Mbps(maxrate); |
| 571 |
|
571 |
|
| 572 |
ether_ifattach(ifp, vap->iv_myaddr); |
572 |
ether_ifattach(ifp, vap->iv_myaddr); |
| 573 |
if (vap->iv_opmode == IEEE80211_M_MONITOR) { |
573 |
/* hook output method setup by ether_ifattach */ |
| 574 |
/* NB: disallow transmit */ |
574 |
vap->iv_output = ifp->if_output; |
| 575 |
ifp->if_transmit = null_transmit; |
575 |
ifp->if_output = ieee80211_output; |
| 576 |
ifp->if_output = null_output; |
|
|
| 577 |
} else { |
| 578 |
/* hook output method setup by ether_ifattach */ |
| 579 |
vap->iv_output = ifp->if_output; |
| 580 |
ifp->if_output = ieee80211_output; |
| 581 |
} |
| 582 |
/* NB: if_mtu set by ether_ifattach to ETHERMTU */ |
576 |
/* NB: if_mtu set by ether_ifattach to ETHERMTU */ |
| 583 |
|
577 |
|
| 584 |
IEEE80211_LOCK(ic); |
578 |
IEEE80211_LOCK(ic); |