A method for allocating resources in a wireless network, the method comprising: transmitting a control channel in a resource block, RB, or RB-pair, the control channel comprising a first control channel element that is associated with a first antenna port and a second control channel element that is associated with a second antenna port, wherein the first antenna port is pre-assigned a first reference signal and the second antenna port is pre-assigned a second reference signal, wherein the control channel is an enhanced physical downlink control channel, E-PDCCH, located at least partially in a data region of a long term evolution, LTE, sub-frame, and the first control channel element and the second control channel element are enhanced control channel elements, eCCEs, and the first reference signal and the second reference signal occupy same resource elements, REs; wherein the method is characterized by further comprising: assigning a first modified Walsh code to the first reference signal, wherein the first modified Walsh code is obtained by multiplying a first Walsh code by a first complex constant; assigning a second modified Walsh code to the second reference signal, wherein the second modified Walsh code is obtained by multiplying a second Walsh code by a second complex constant, wherein the second complex constant and the first complex constant have a non-zero phase difference; and transmitting, in the RB or RB-pair, both the first reference signal in accordance with the first modified Walsh code and the second reference signal in accordance with the second modified Walsh code, wherein the first reference signal is transmitted to enable channel estimation for the first control channel element, and wherein the second reference signal is transmitted to enable channel estimation for the second control channel element. transmitting a control channel in a resource block, RB, or RB-pair, the control channel comprising a first control channel element that is associated with a first antenna port and a second control channel element that is associated with a second antenna port, wherein the first antenna port is pre-assigned a first reference signal and the second antenna port is pre-assigned a second reference signal, wherein the control channel is an enhanced physical downlink control channel, E-PDCCH, located at least partially in a data region of a long term evolution, LTE, sub-frame, and the first control channel element and the second control channel element are enhanced control channel elements, eCCEs, and the first reference signal and the second reference signal occupy same resource elements, REs; wherein the method is characterized by further comprising: assigning a first modified Walsh code to the first reference signal, wherein the first modified Walsh code is obtained by multiplying a first Walsh code by a first complex constant; assigning a second modified Walsh code to the second reference signal, wherein the second modified Walsh code is obtained by multiplying a second Walsh code by a second complex constant, wherein the second complex constant and the first complex constant have a non-zero phase difference; and transmitting, in the RB or RB-pair, both the first reference signal in accordance with the first modified Walsh code and the second reference signal in accordance with the second modified Walsh code, wherein the first reference signal is transmitted to enable channel estimation for the first control channel element, and wherein the second reference signal is transmitted to enable channel estimation for the second control channel element. assigning a first modified Walsh code to the first reference signal, wherein the first modified Walsh code is obtained by multiplying a first Walsh code by a first complex constant; assigning a second modified Walsh code to the second reference signal, wherein the second modified Walsh code is obtained by multiplying a second Walsh code by a second complex constant, wherein the second complex constant and the first complex constant have a non-zero phase difference; and transmitting, in the RB or RB-pair, both the first reference signal in accordance with the first modified Walsh code and the second reference signal in accordance with the second modified Walsh code, wherein the first reference signal is transmitted to enable channel estimation for the first control channel element, and wherein the second reference signal is transmitted to enable channel estimation for the second control channel element.