Author: simon Date: 2009-11-28 18:44:04 +0000 (Sat, 28 Nov 2009) New Revision: 1487
Modified: trunk/batman-adv-kernelland/routing.c Log: stop permanent warnings if a device is added but deactivated.
Modified: trunk/batman-adv-kernelland/routing.c =================================================================== --- trunk/batman-adv-kernelland/routing.c 2009-11-28 18:41:31 UTC (rev 1486) +++ trunk/batman-adv-kernelland/routing.c 2009-11-28 18:44:04 UTC (rev 1487) @@ -1177,12 +1177,8 @@ { int result = -EAGAIN;
- if (batman_if->if_active != IF_TO_BE_ACTIVATED) { - printk(KERN_WARNING - "batman-adv:Could not read from deactivated interface %s!\n", - batman_if->dev); - } else { - if (batman_if->raw_sock) + if ((batman_if->if_active == IF_TO_BE_ACTIVATED) + && (batman_if->raw_sock)) { result = receive_raw_packet(batman_if->raw_sock, packet_buff, PACKBUFF_SIZE);