Disabling networkmanager for a specific interface
Solution 1:
To quote /usr/share/doc/network-manager/README.Debian
:
Configuration of wireless and ethernet interfaces ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Only devices that are not listed in /etc/network/interfaces or which have been configured "auto" and "dhcp" (with no other options) are managed by NM.
This way you can setup a custom (static) configuration for a device and NM will not try to override this setting.
After modifying /etc/network/interfaces you have to restart NM with the command "/etc/init.d/network-manager restart".
and then it has some examples.
Solution 2:
You can also add this line to /etc/network/interfaces
iface wlan0 inet manual