Like I said, there are three cases in the 802.11->802.3 conversion
1) Full encapsulation
- in the 802.11 payload is a complete 802.3 frame
2) LLC, with a recognized protocol type
- strip off all headers, and stick a 802.3 header on the payload
with the correct frame type.
3) LLC, with an unrecognized protocol type
- strip off the 802.11 header, stick on a 802.3 header.
For 802.3->802.11, it's much simpler:
1) Full encapsulation (not normally used)
- Wrap a 802.11 header around the 802.3 frame.
2) LLC present
- strip off the 802.3 header, slap on a 802.11 header
3) No LLC:
- strip off the 802.3 header, slap on LLC and then 802.11.