Point of irony, Hank "had" Walter during the investigation into Gale's murder. Hank laughed off his own realization that the "W.W." in Gale's notebook could stand for Walter White and moved on to investigating Fring. Hank was just too close to the truth to see that Walter had the skill set to actually be Heisenberg.