Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hal.h from the prima driver #1

Merged
merged 25 commits into from
Apr 11, 2013

Conversation

kvalo
Copy link
Contributor

@kvalo kvalo commented Mar 14, 2013

This pull requests adds hal.h from the prima driver. The benefit from this is that we use the same terms as the prima driver.

I did a lot of cleanup but there's still few pendings pending, for example endian support, few typedefs and structure field names. I'll clean those later.

Eugene Krasnikov and others added 13 commits March 9, 2013 16:38
In START_RSP message status filed is 2 bytes but not 4 as in
all other responses. Because of that check for status was
always failing all the time. As a fix check for success only
2 bytes.

Signed-off-by: Eugene Krasnikov <eugene.krasnikov@sonymobile.com>
So that we can use it with wcn36xx.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Follow Linux style and use real structs and __packed.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Leave the ones which change structure content, these need to be solved somehow differently.

Also fix few compiler errors which happened due to #ifdef removal.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Lindent reformatted it in a really ugly way.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
@KrasnikovEugene
Copy link
Owner

enums like eSIR_WEP_STATIC must be renamed

@KrasnikovEugene
Copy link
Owner

enums like eSTA_11ac must be removed since HW is not supporting 11ac

@KrasnikovEugene
Copy link
Owner

suggest also to change variable name to something more linux friendli e.g. ucMaxBssids change to max_bssids

@KrasnikovEugene
Copy link
Owner

Also suggest to change PE_SUMMARY_STATS_INFO to something else because PE is a similar to SIR(one of the layers in prima driver) and not valid for wcn36xx any more

@kvalo
Copy link
Contributor Author

kvalo commented Mar 15, 2013

In most cases we should use WCN36XX_HAL where it’s not excessive

KrasnikovEugene notifications@github.com writes:

Also suggest to change PE_SUMMARY_STATS_INFO to something else because PE is a
similar to SIR(one of the layers in prima driver) and not valid for wcn36xx any
more

Maybe I should use WCN36XX_HAL_ and wcn36xx_hal_ prefixes everywhere?

Kalle Valo

/*
* Copyright (c) 2012, The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copyrights twice. probably to excessive;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KrasnikovEugene notifications@github.com writes:

In hw.h:

  • * above copyright notice and this permission notice appear in all
  • * copies.
  • * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  • * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  • * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  • * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  • * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  • * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  • * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  • * PERFORMANCE OF THIS SOFTWARE.
  • /
    +/
  • * Copyright (c) 2012, The Linux Foundation. All rights reserved.
  • * Previously licensed under the ISC license by Qualcomm Atheros, Inc.

copyrights twice. probably to excessive;)

I have already removed hw.h from my branch already, we just needed one
define from hw.h.

Kalle Valo

@KrasnikovEugene
Copy link
Owner

I suggest to remove this.

#define IS_MCC_SUPPORTED_BY_HOST (!!(halMsg_GetHostWlanFeatCaps(MCC)))
#define IS_SLM_SESSIONIZATION_SUPPORTED_BY_HOST (!!(halMsg_GetHostWlanFeatCaps(SLM_SESSIONIZATION)))
#define IS_FEATURE_SUPPORTED_BY_HOST(featEnumValue) (!!halMsg_GetHostWlanFeatCaps(featEnumValue))
#define IS_WLANACTIVE_OFFLOAD_SUPPORTED_BY_HOST (!!(halMsg_GetHostWlanFeatCaps(WLANACTIVE_OFFLOAD)))

kvalo added 10 commits March 25, 2013 07:19
The 'e' prefix is useless.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
We actually just need just HAL_NUM_BSSID from hw.h. So copy that to hal.h and delete hw.h entirely.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Simplify them and get rid of camel case style.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
@KrasnikovEugene
Copy link
Owner

Ok, there is so many changes already so we have to merge this and start to use it. Let's just file issues when we found something.

KrasnikovEugene added a commit that referenced this pull request Apr 11, 2013
Add hal.h from the prima driver
@KrasnikovEugene KrasnikovEugene merged commit e7b33e8 into KrasnikovEugene:master Apr 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants