If your eth0 does not provide internet you can delete the default route. In this way you get internet when connecting the wlan.
Code: Select all
auto eth0
iface eth0 inet dhcp
post-up route del default dev $IFACE
This may not be what you want if you can have internet through the eth0 also.