Adapt to new beacon/dtim enum semantic

The commit 989c6505cdda587f87573bb6828f23964dd3d19b changes the name of
the enum BSS_CHANGED_DTIM_PERIOD to BSS_CHANGED_BEACON_INFO.
We need to update our code to the corresponding value.

Signed-off-by: Olof Johansson <dev@skyshaper.net>
Update to new wowlan support struct

Commit 964dc9e2c3aaccacacd40640964a58544fb5769a updated the way to
configure wowlan support. This commit adapts wcn36xx to this new way.

Signed-off-by: Olof Johansson <dev@skyshaper.net>
Refactor TX path

With this patch all parameters will be first passed to txrx
module and only after that to dxe. This will allow passing
less parameters to the functions. Also make sure that data
frames will get as fast as possible to the HW.

Short function description:

wcn36xx_start_tx - fills in BD and trigger dxe to start
transmitting.

wcn36xx_set_tx_pdu - fills in PDU part of BD.

wcn36xx_set_tx_data - set data specific BD parameters

wcn36xx_set_tx_mgmt - set BD parameters that are specific to
management and control frames.

wcn36xx_dxe_tx_frame - transmits one frame from the head
of the descriptors.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Merge pull request #71 from KrasnikovEugene/refact

Refactor TX path
Merge pull request #69 from Coi-l/newr

Adaptions for new kernel commits
Add the debug filesystem framework

This patch add the debug file system framework which
will be used to add some dynamic debug switcher.

Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Add the power save control framework and debugfs entry

The patch add the power save framework which will be extended for
system power control relative function, especialy for power save.
It also add the debugfs entry for manual control the BMPS for debug

Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Add the DUMP command interface which can be used contro the FW action

The DUMP command can be used to control lots of FW action, currently we
only use it to dynamic turn on/off some FW module's debug level to get
more debug info from QXDM. IE;

echo 13 6 3 1 means open all CXM module log

Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Enable Config the keep alive function

Impelmentation the keep alive function which can be used to set the
FW send the NULL packet to AP after associated.

Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Judge the BMPS status before enter BMPS mode

Be make surethe device is not in BMPS mode before enter it
when suspend

Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Merge pull request #70 from dreamfly281/master

Add the debugfs and power save relative function
Remove bool prefix from dump command

dump command is not a bool variable.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Declare debug_mask in debugfs

Now debug_mask can be changed in runtime.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Add more power save flags to notice the upper layer the support feature

Add more power save flags to notice the upper layer the support feature

Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Add the feature capability exchange function

The function can be used to exchange the capability between
Host and Firmware.

Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Use SMSM bus to send data frames

In connected state driver will enter BMPS mode and chip
can go to suspend. When driver will try to send a frame
chip can sleep at that time so wake it up through SMSM
bus.

Reset the power state when return from the suspend mode

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Merge pull request #72 from dreamfly281/master

Power save relative function and make BMPS work better
Merge pull request #74 from KrasnikovEugene/debug_mask

Debug mask