[PATCH 1/2] batman-adv: compat: add the case if dev is NULL