Given host 'A' and 'B' have IP 10.10.0.5 and 10.10.0.8 respectively, the sub-net mask for both are 255.255.255.0, both 'A' and 'B' are associated and connected to the same AP, and the AP is connected to a switch at the interface 'X'.
'A' sends some packet to 'B'. If while 'A' is transmitting the packets and 'B' is in the transmission range of 'A', 'B' should hear his MAC address but CSMA-CA along with IEEE802.11(infrastructure mode) impose that 'B' needs to receive packets from only AP. Which route the packet should take?
+---+
| A +--1-->+----+ +----+
+---+ | +--2-->+ |
| AP | | SW |
+---+ | +<--3--+ |
| B +<--4--+----+ +----+
+---+
or
+---+
| A +--1-->+----+
+---+ | |
| AP |
+---+ | |
| B +<--2--+----+
+---+