What kind of problem? Does it connect/disconnect, not connect at all? Can you view the router from the iphone wireless lookup?
I've had multiple issues with the iphone connecting, turns out there's some mixup between the WEP2 protection and the iphone, try to disable it and connect see if it works.