> + case 14: > + if (!rdev->wiphy.gscan) { > + /* done */ > + state->split_start = 0; > + break; > + } > Nit, but I'm not really happy with this - this assumes that case 14 is the last case, if anyone ever adds one we break this code but it would still work if the device has gscan. Move the gscan stuff into a new function and make that return immediately if gscan is NULL or so? johannes