From: Johannes Berg Date: Wed, 27 Feb 2008 08:56:40 +0000 (+0100) Subject: mac80211: fix sta_info mesh timer bug X-Git-Tag: v2.6.26-rc1~1138^2~454^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e4497ebeaa8011eb0ab0a54496ed6413b9d1a4;p=pandora-kernel.git mac80211: fix sta_info mesh timer bug I noticed a bug I introduced when mesh is enabled: sta_info_destroy() will end up calling cancel_timer() on a timer that has never been initialized because the timer is only initialized in mesh_plink_alloc(), not in sta_info_alloc(). This patch moves the initialization of all mesh related fields into sta_info_alloc(), adds a bit of sanity checking to the cfg80211 handlers and sta_info_insert() and makes mesh_plink_alloc() a static helper function that is only used from the mesh plink code. Signed-off-by: Johannes Berg Cc: Luis Carlos Cobo Signed-off-by: John W. Linville --- Reading git-diff-tree failed