AbstractW. Casselman defined a basis fu of Iwahori fixed vectors of a spherical representation of a split semisimple p-adic group G over a nonarchimedean local field F by the condition that it be dual to the intertwining operators, indexed by elements u of the Weyl group W. On the other hand, there is a natural basis , and one seeks to find the transition matrices between the two bases. Thus, let and . Using the Iwahori–Hecke algebra we prove that if a combinatorial condition is satisfied, then , where z are the Langlands parameters for the representation and α runs through the set S(u, v) of positive coroots (the dual root systemof G) such that with rα the reflection corresponding to α. The condition is conjecturally always satisfied if G is simply-laced and the Kazhdan–Lusztig polynomial Pw0v,w0u = 1 with w0 the long Weyl group element. There is a similar formula for conjecturally satisfied if Pu,v = 1. This leads to various combinatorial conjectures.